]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove unused variable from Locker
authorGreg Farnum <gregf@hq.newdream.net>
Wed, 21 Apr 2010 18:06:06 +0000 (11:06 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 23 Apr 2010 22:12:03 +0000 (15:12 -0700)
src/mds/Locker.cc

index c4e54645d2c5cc991e355fd1df049e332c7750b1..c39968be77c6960c5f6329a99ce09d31dc2c3b0a 100644 (file)
@@ -821,10 +821,6 @@ bool Locker::wrlock_start(SimpleLock *lock, MDRequest *mut, bool nowait)
     
   CInode *in = (CInode *)lock->get_parent();
   client_t client = mut->get_client();
-  Capability *cap = 0;
-  if (client >= 0)
-    cap = in->get_client_cap(client);
-
   
   while (1) {
     // wrlock?