]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileStore: add global replay guard for split, collection_rename
authorSamuel Just <sam.just@inktank.com>
Thu, 18 Jul 2013 17:12:17 +0000 (10:12 -0700)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 23:20:35 +0000 (16:20 -0700)
commit95b1b5da439f1b7e2fb1886aaeec2d61532183f0
treee039da815e5e4f0fd91dc89f93539881ed8d9d40
parentd92a43d8ff0123b234e47a94c2ce73fcaae7f625
FileStore: add global replay guard for split, collection_rename

In the event of a split or collection rename, we need to ensure that
we don't replay any operations on objects within those collections
prior to that point.  Thus, we mark a global replay guard on the
collection after doing a syncfs and make sure to check that in
_check_replay_guard() for all object operations.

Fixes: #5154
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit f3f92fe21061e21c8b259df5ef283a61782a44db)

Conflicts:

src/os/FileStore.cc
src/os/FileStore.cc
src/os/FileStore.h