]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: match last snap exactly on replay, add_*_dentry
authorSage Weil <sage@newdream.net>
Fri, 7 Nov 2008 21:26:41 +0000 (13:26 -0800)
committerSage Weil <sage@newdream.net>
Fri, 7 Nov 2008 21:26:41 +0000 (13:26 -0800)
commit214f0fa62aaae70ad1ed270e188cd79d2bbc9e18
tree41b5e87eb1b9e833d9fc85f3d017871b7a345d09
parent68f8f3dfa08b572b140285431270b2a487ef7192
mds: match last snap exactly on replay, add_*_dentry

In general, we add new snapped dentries and THEN the new live dentry
to the metablob.  That means that during replay, we see [2,2] followed
by [3,head], replacing [2,head].  The [2,2] dentry should be added
anew, without paying heed to [2,head], and then the [3,head] should
replace/update [2,head].

It was mainly just the assertions in add_*_dentry that were getting
in the way.. but the lookup_exact_snap is also slightly faster.
src/mds/CDir.cc
src/mds/CDir.h
src/mds/journal.cc