]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: fix mds touch
authorSage Weil <sage@newdream.net>
Fri, 24 Jun 2011 17:51:36 +0000 (10:51 -0700)
committerSage Weil <sage@newdream.net>
Fri, 24 Jun 2011 23:49:29 +0000 (16:49 -0700)
src/client/Client.cc
src/client/Client.h

index f9806e1e04c87fcf485fd3b243f063f1310bfd40..a8adab6f13a85e16c559615eff46a76406ededc4 100644 (file)
@@ -3321,7 +3321,7 @@ int Client::_lookup(Inode *dir, const string& dname, Inode **target)
        *target = dn->inode;
        // touch this mds's dir cap too, even though we don't _explicitly_ use it here, to
        // make trim_caps() behave.
-       try_touch_cap(dir, dn->lease_mds);
+       dir->try_touch_cap(dn->lease_mds);
        touch_dn(dn);
        goto done;
       }
index 292bac5d0d4987906299a55a16c873e384e8cfa0..6de99b6c5373e975c1c5cbef9741705395fa23f8 100644 (file)
@@ -593,9 +593,9 @@ class Inode {
     // move to back of LRU
     cap->session->caps.push_back(&cap->cap_item);
   }
-  void try_touch_cap(Inode *inode, int mds) {
+  void try_touch_cap(int mds) {
     if (caps.count(mds))
-      touch_cap[mds];
+      touch_cap(caps[mds]);
   }
   bool caps_issued_mask(unsigned mask) {
     int c = exporting_issued | snap_caps;