]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
improve debug printing
authorGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 15 Apr 2011 22:49:46 +0000 (15:49 -0700)
committerSage Weil <sage@newdream.net>
Mon, 18 Apr 2011 17:41:08 +0000 (10:41 -0700)
src/mds/Server.cc

index 2315d9cb4b256b50975a5f5ad192991d5961c10e..e39e4ccaf7c52b123048e1e092c4f551ecabba3e 100644 (file)
@@ -5687,8 +5687,14 @@ void Server::_commit_slave_rename(MDRequest *mdr, int r,
         if((!lock->is_stable() &&
             lock->get_sm()->states[lock->get_next_state()].next == 0) &&
             !lock->is_locallock()) {
-          dout(20) << "lock will be stable, unpinning" << dendl;
+          dout(20) << "removing lock " << lock << ", will be stable, unpinning" << dendl;
           lock->get_parent()->auth_unpin(lock);
+        } else if (!lock->is_stable()) {
+          dout(5) << "erasing unstable lock " << lock << lock->get_type()
+                  << " on " << *lock->get_parent() << " without removing pins!"
+                  << dendl;
+        } else {
+          dout(20) << "removing lock " << lock << dendl;
         }
         mdr->xlocks.erase(i++);
         mdr->locks.erase(lock);