]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: sync replicas after finishing XLOCK gather
authorSage Weil <sage@newdream.net>
Tue, 7 Sep 2010 22:46:20 +0000 (15:46 -0700)
committerSage Weil <sage@newdream.net>
Tue, 7 Sep 2010 22:46:20 +0000 (15:46 -0700)
The replicas are in the LOCK state; sync them.  We had the XLOCKDONE but
not the XLOCK case.

src/mds/Locker.cc

index 52dcadb304b89bb59d9cd08d650573e658adebdc..f9a460c04838f72cce81c3f1fae2276e523c9828 100644 (file)
@@ -544,6 +544,7 @@ void Locker::eval_gather(SimpleLock *lock, bool first, bool *pneed_issue, list<C
       case LOCK_EXCL_SYNC:
       case LOCK_LOCK_SYNC:
       case LOCK_MIX_SYNC:
+      case LOCK_XLOCK:
       case LOCK_XLOCKDONE:
        if (lock->get_parent()->is_replicated()) {
          bufferlist softdata;