]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix file_excl assert
authorSage Weil <sage@newdream.net>
Tue, 5 Jul 2011 15:58:26 +0000 (08:58 -0700)
committerSage Weil <sage@newdream.net>
Tue, 5 Jul 2011 15:58:26 +0000 (08:58 -0700)
commit6feab3cbf42f7606d0076bfcf8cef1483e69a814
tree170ae864500243835e1579db6039a6304191e705
parent1206625b57a35da9b6fa67e1ce6a41c771ef06f3
mds: fix file_excl assert

If we are in XSYN state and want to move to anything else, we must go via
EXCL, but we may not be loner anymore.  Weaken the file_excl() assert so we
don't crash.

Reported-by: Fyodor Ustinov <ufm@ufm.su>
Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/Locker.cc