]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: invalidate rmap on create (and thus decode)
authorSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 22:53:42 +0000 (15:53 -0700)
committerSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 22:55:43 +0000 (15:55 -0700)
commitde40d0b3e35ab0124cd3c4ebfcaa435ab8abfab9
tree78addfb6c686649903d811d67351ab37bb2ee6b8
parent32f5233288c47d95b87c0a9cab5f9c2ffcf15417
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.

Remove the build_rmaps() all in decode that was useless on a redecode
(because have_rmaps == true in that case and it did nothing).

Fixes: #6442
Backport: dumpling, maybe cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 9b7a2ae329b6a511064dd3d6e549ba61f52cfd21)
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h