]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/flock: don't import ceph_lock_state_t::waiting_locks
authorYan, Zheng <zyan@redhat.com>
Sat, 3 Jun 2017 03:42:12 +0000 (11:42 +0800)
committerYan, Zheng <zyan@redhat.com>
Sat, 3 Jun 2017 03:58:33 +0000 (11:58 +0800)
Item in waiting_locks is associated with flock mds request in
exporter mds. If client re-sends the flock mds request to the
importer, the importer starts a new MDRequest. The new one's
'flock_was_waiting' is false.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/flock.h

index cceb78e7a9429131cc64e1af8713ccb3376ef9a9..142e4d12708717dce34ef2873f57d4149f0e5089 100644 (file)
@@ -252,21 +252,11 @@ private:
 public:
   void encode(bufferlist& bl) const {
     ::encode(held_locks, bl);
-    ::encode(waiting_locks, bl);
     ::encode(client_held_lock_counts, bl);
-    ::encode(client_waiting_lock_counts, bl);
   }
   void decode(bufferlist::iterator& bl) {
     ::decode(held_locks, bl);
-    ::decode(waiting_locks, bl);
     ::decode(client_held_lock_counts, bl);
-    ::decode(client_waiting_lock_counts, bl);
-  }
-  void clear() {
-    held_locks.clear();
-    waiting_locks.clear();
-    client_held_lock_counts.clear();
-    client_waiting_lock_counts.clear();
   }
   bool empty() const {
     return held_locks.empty() && waiting_locks.empty() &&