]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: avoid issuing zero caps to client
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 4 Mar 2014 08:46:57 +0000 (16:46 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Wed, 19 Mar 2014 03:35:56 +0000 (11:35 +0800)
make sure CEPH_CAP_PIN exists in stale caps.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/Capability.h

index 7e04de0bd20e3fd8c4e383893e97187b5a30e5f5..c105a38fe13ded74ce1bafde1701696965d6e0ea 100644 (file)
@@ -311,7 +311,7 @@ public:
        issue(newpending);
       last_issue_stamp = other.last_issue_stamp;
     } else {
-      inc_last_seq();
+      issue(CEPH_CAP_PIN);
     }
 
     client_follows = other.client_follows;
@@ -330,7 +330,7 @@ public:
       else
        issue(newpending);
     } else {
-      inc_last_seq();
+      issue(CEPH_CAP_PIN);
     }
 
     // wanted