]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: store migrator lock set over course of export
authorSage Weil <sage@newdream.net>
Wed, 19 Jan 2011 22:54:56 +0000 (14:54 -0800)
committerSage Weil <sage@newdream.net>
Thu, 20 Jan 2011 18:07:58 +0000 (10:07 -0800)
commitf33a33e9473295f0e6cd60aee17a007542994b1e
tree2b0c657165c4e5ee294dbb4e07cdfde2098435f7
parent820c54fedcbc944b36eb54632a7175177f33c5fd
mds: store migrator lock set over course of export

We were recalculating the migrator locks at the beginning and end of
export, but we were getting inconsistent sets at the end point, causing us
to unlock the wrong set of bounds.  Instead, calculate the set when we
first start and again once we're frozen and things are set in stone.  When
we're done, unlock that same set.  Cleanup up the set as needed.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/Migrator.cc
src/mds/Migrator.h