]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: remove useless code in _rmsnap_finish()
authorXiubo Li <xiubli@redhat.com>
Sun, 17 Jul 2022 07:00:51 +0000 (15:00 +0800)
committerXiubo Li <xiubli@redhat.com>
Sun, 17 Jul 2022 07:02:59 +0000 (15:02 +0800)
commit b590b4bc1f8eaf7aa0ffbe6ad94875f807514066 had switched to use
snaprealm projection in rmsnap, and after that the seq won't be used
anymore.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/Server.cc

index e8313712cdcb784553f35c8452f939d161ff1544..eea7786eb92caaa65d36b41ef58c67ea97fa7a75 100644 (file)
@@ -10984,9 +10984,6 @@ void Server::_rmsnap_finish(MDRequestRef& mdr, CInode *diri, snapid_t snapid)
 {
   dout(10) << "_rmsnap_finish " << *mdr << " " << snapid << dendl;
   snapid_t stid = mdr->more()->stid;
-  auto p = mdr->more()->snapidbl.cbegin();
-  snapid_t seq;
-  decode(seq, p);  
 
   mdr->apply();