summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-04-29 08:03:12 -0700
committerSage Weil <sage.weil@dreamhost.com>2012-04-29 08:11:25 -0700
commitf750c3f46b87dfc5cf2f97d715b4695602856174 (patch)
treec01389f46e75385615b6942a1d0544d4b73f0e5d
parent36b02575ebf1cc6384322eafed8806bf6cf0a2ed (diff)
downloadceph-f750c3f46b87dfc5cf2f97d715b4695602856174.tar.gz
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 <sage.weil@dreamhost.com>
-rw-r--r--src/osd/PG.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osd/PG.cc b/src/osd/PG.cc
index d09a4f76533..f6342a4c12b 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<Context*>& 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);