summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-10-01 15:01:26 -0700
committerSage Weil <sage@inktank.com>2013-10-01 15:01:26 -0700
commitc3ad28688c5548000ac1512fd0739330c0a5c920 (patch)
tree221f71fec57cb204b3fedb2e2d59b19672296341
parent5da81bdb8d5c34900096052c822f1792bda92ba4 (diff)
downloadceph-wip-foo.tar.gz
crush: invalidate rmap on create (and thus decode)wip-foo
If we have an existing CrushWrapper object and decode from a bufferlist, reset build_rmaps so that they get rebuilt. Hopefully-fixes: #6442 Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/crush/CrushWrapper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crush/CrushWrapper.h b/src/crush/CrushWrapper.h
index 80906e4fe18..b4bb67bb742 100644
--- a/src/crush/CrushWrapper.h
+++ b/src/crush/CrushWrapper.h
@@ -94,6 +94,7 @@ public:
crush_destroy(crush);
crush = crush_create();
assert(crush);
+ have_rmaps = false;
}
// tunables