summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-04-28 22:32:08 -0700
committerSage Weil <sage.weil@dreamhost.com>2012-04-28 22:32:08 -0700
commitfc8ce16a84aeb0026399d51a5ab8f7f184f67a8b (patch)
tree8c5b09ec1119123260c83fa5a209a0a506d8c40c
parentff9bce9724883fe784435a262790d29bcb5b4419 (diff)
downloadceph-fc8ce16a84aeb0026399d51a5ab8f7f184f67a8b.tar.gz
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 <sage.weil@dreamhost.com>
-rw-r--r--src/osd/OSD.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc
index 112f7eaa158..f47d27719ed 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, &notify_list, 0, 0);