]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PGLog: reindex properly on pg log split
authorSage Weil <sage@redhat.com>
Fri, 17 Feb 2017 19:50:38 +0000 (14:50 -0500)
committerSage Weil <sage@redhat.com>
Fri, 17 Feb 2017 19:50:38 +0000 (14:50 -0500)
commit643ae42cf27f16dd6ed4e1402acc0483bb9fca74
tree6688bf987ab9bee61faf16d1108648b991c6f764
parent92e51fd9443bfadddf0f9f7ea8aebca74a104776
osd/PGLog: reindex properly on pg log split

When pg_log_t::split_out_child() runs it builds the list, which means the
old indexes are wrong (the point to bad memory), but index() will not
rebuild them because ever since b858e869e78927dccebaa350d246bd74af7f1de9
we won't rebuild them if they are already built.

Fix that by calling unindex() before the split.

Further, the new child log also needs to be indexed.  Fix that too.

Fixes: http://tracker.ceph.com/issues/18975
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PGLog.cc