From: Sage Weil Date: Sun, 29 Apr 2012 05:32:08 +0000 (-0700) Subject: osd: do not merge history on query X-Git-Tag: v0.47~80^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc8ce16a84aeb0026399d51a5ab8f7f184f67a8b;p=ceph.git osd: do not merge history on query We shouldn't modify the local notion of the history without recording it to disk. And we (probably) also don't need to do that at all on query. Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 112f7eaa1587..f47d27719eda 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4634,9 +4634,11 @@ void OSD::handle_pg_query(OpRequestRef op) continue; } + /* FIXME: do not do this unless/until we also write any modified history to disk. unreg_last_pg_scrub(pg->info.pgid, pg->info.history.last_scrub_stamp); pg->info.history.merge(it->second.history); reg_last_pg_scrub(pg->info.pgid, pg->info.history.last_scrub_stamp); + */ // ok, process query! PG::RecoveryCtx rctx(0, 0, ¬ify_list, 0, 0);