]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: preserve stale state on import; some cleanup
authorSage Weil <sage@newdream.net>
Sat, 6 Nov 2010 04:52:28 +0000 (21:52 -0700)
committerSage Weil <sage@newdream.net>
Sat, 6 Nov 2010 04:52:28 +0000 (21:52 -0700)
commite27f111f31f25a66f0a691247dc42978d1cd5aa1
tree7f69ae62f2c5c9c735562ed3df580739c57350ec
parent4126d1ce36f23a3073d4f37101990035d248e0a2
mds: preserve stale state on import; some cleanup

Our new invariant is that MIX_STALE always implies is_stale().  And on
import, if is_stale(), MIX becomes MIX_STALE.  This ensures that a replica
that we put into MIX_STALE doesn't turn back into MIX if we import it
and take the auth's state in CInode::decode_import().

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/CDir.cc
src/mds/CInode.cc
src/mds/Locker.cc
src/mds/ScatterLock.h