]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't bump snaptable last_snap when renaming snapshot
authorYan, Zheng <zyan@redhat.com>
Wed, 11 Apr 2018 02:20:20 +0000 (10:20 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 19 Apr 2018 03:32:18 +0000 (11:32 +0800)
this helps keeping removed_snaps interval_set in osdmap contiguous

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

index 4bdbfd8e8fb7535c539a2fce5708202c5a666fe7..7e97ab8b0ef864d970478ede7c80d32c0b9b5694 100644 (file)
@@ -120,8 +120,6 @@ void SnapServer::_prepare(bufferlist &bl, uint64_t reqid, mds_rank_t bymds)
       decode(info.name, p);
       decode(info.stamp, p);
 
-      // bump last_snap... we use it as a version value on the snaprealm.
-      ++last_snap;
       pending_update[version] = info;
       dout(10) << "prepare v" << version << " update " << info << dendl;