From c3ad28688c5548000ac1512fd0739330c0a5c920 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 1 Oct 2013 15:01:26 -0700 Subject: crush: invalidate rmap on create (and thus decode) 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 --- src/crush/CrushWrapper.h | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1