]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: If we're a slave, clean up xlocks when we export an inode.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 31 Mar 2011 21:02:48 +0000 (14:02 -0700)
committerSage Weil <sage@newdream.net>
Mon, 18 Apr 2011 17:40:10 +0000 (10:40 -0700)
commit478c617311e1ebf23e643ecf10587166d9badba7
treee897682b7dd1a01b296556ced1e23e274b5707e8
parent5299aabe1c3f20c5000c5051d45dd2bb17177ad5
mds: If we're a slave, clean up xlocks when we export an inode.

Because we can do an inode import during a rename that skips the usual
channels, we were getting into an odd state with the xlocks (which we
did as a slave for an inode that we exported away). Clean up the
record of these xlocks for inodes before we get into the request
cleanup (at which point we are labeled as no-longer-auth, and the
standard cleanup routines will break).

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mds/Server.cc