]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: witness rmdir when subtrees are on other hosts
authorSage Weil <sage@newdream.net>
Fri, 15 Jul 2011 23:36:07 +0000 (16:36 -0700)
committerSage Weil <sage@newdream.net>
Wed, 20 Jul 2011 19:46:57 +0000 (12:46 -0700)
commita25374e40ab585bef7314bb258f0c831f881bf96
tree19bce181b32cf45ca4df148c83bc50185ee7dead
parent0c913a87218611a9fc31c55188d63bbd615cd617
mds: witness rmdir when subtrees are on other hosts

If there is an rmdir with an empty subtree on another mds, we need to witness/
journal that on the dirfrag's auth mds so that replay correctly updates the
subtree map.

This is simpler than the rename witnesses (and the link/unlink ones) because
we aren't actually journaling a modification to any actual metadata; it's just
the subtree map that is changing.

The projection of the subtree map update needs work still, but that is also the
case for renames.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/Server.cc
src/mds/Server.h
src/mds/events/ESlaveUpdate.h
src/messages/MMDSSlaveRequest.h