]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/CDir: do not set referenced variable
authorKefu Chai <kchai@redhat.com>
Tue, 17 Aug 2021 00:38:30 +0000 (08:38 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 17 Aug 2021 00:47:33 +0000 (08:47 +0800)
off is set by never get referenced, let's just drop it.

this variable was introduced by
0ec5f3a84aa29ec422e920fb5dc989ed90897e6b.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mds/CDir.cc

index 8bbe34192e7a8b85d1ff71950d7419cc812444b3..59912178f6bbcc8950bb4d7677a03183e1c68bc3 100644 (file)
@@ -2342,7 +2342,6 @@ void CDir::_omap_commit_ops(int r, int op_prio, int64_t metapool, version_t vers
     _rm.emplace(std::move(key));
   }
 
-  uint64_t off = 0;
   bufferlist bl;
   using ceph::encode;
   for (auto &item : to_set) {
@@ -2359,7 +2358,6 @@ void CDir::_omap_commit_ops(int r, int op_prio, int64_t metapool, version_t vers
       _encode_primary_inode_base(item, dfts, bl);
       ENCODE_FINISH(bl);
     }
-    off += item.dft_len;
 
     unsigned size = item.key.length() + bl.length() + 2 * sizeof(__u32);
     if (write_size + size > max_write_size)