From f750c3f46b87dfc5cf2f97d715b4695602856174 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 29 Apr 2012 08:03:12 -0700 Subject: [PATCH] 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 --- src/osd/PG.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.5