From: Sage Weil Date: Sun, 29 Apr 2012 15:03:12 +0000 (-0700) Subject: osd: use dirty flags in activate(), merge_log() X-Git-Tag: v0.47~80^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f750c3f46b87dfc5cf2f97d715b4695602856174;p=ceph.git osd: use dirty flags in activate(), merge_log() These are all called from within the state machine, so we can simply set the dirty flags. Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index d09a4f7653328..f6342a4c12b6c 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -485,8 +485,8 @@ void PG::merge_log(ObjectStore::Transaction& t, dout(10) << "merge_log result " << log << " " << missing << " changed=" << changed << dendl; if (changed) { - write_info(t); - write_log(t); + dirty_info = true; + dirty_log = true; } } @@ -1227,8 +1227,8 @@ void PG::activate(ObjectStore::Transaction& t, list& tfin, need_up_thru = false; // write pg info, log - write_info(t); - write_log(t); + dirty_info = true; + dirty_log = true; // clean up stray objects clean_up_local(t);