]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix reversed conditional on simplelock ->excl transition
authorSage Weil <sage@newdream.net>
Tue, 4 Aug 2009 20:19:41 +0000 (13:19 -0700)
committerSage Weil <sage@newdream.net>
Tue, 4 Aug 2009 22:33:36 +0000 (15:33 -0700)
src/mds/Locker.cc

index 008bfca8f0e22b89fc4c13997bfe81d7ed8c0a01..8a06afa972cc008bb5f3345e3426013dd1c08215 100644 (file)
@@ -2555,7 +2555,7 @@ void Locker::simple_excl(SimpleLock *lock, bool *need_issue)
     gather++;
   
   if (lock->get_parent()->is_replicated() && 
-      lock->get_state() == LOCK_LOCK_EXCL) {
+      lock->get_state() != LOCK_LOCK_EXCL) {
     send_lock_message(lock, LOCK_AC_LOCK);
     lock->init_gather();
     gather++;