]> 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)
committerSamuel Just <sam.just@inktank.com>
Thu, 18 Jul 2013 20:24:02 +0000 (13:24 -0700)
commitf3f92fe21061e21c8b259df5ef283a61782a44db
tree4bfcfc5842d2e8e007eb93247bc750a5b6f3a010
parent723d691f7a1f53888618dfc311868d1988f61f56
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>
src/os/FileStore.cc
src/os/FileStore.h