From: Yan, Zheng Date: Wed, 11 Apr 2018 02:20:20 +0000 (+0800) Subject: mds: don't bump snaptable last_snap when renaming snapshot X-Git-Tag: v13.1.0~2^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=28dc90bfade310a7b593d44f700a4a84bbf942b5;p=ceph.git mds: don't bump snaptable last_snap when renaming snapshot this helps keeping removed_snaps interval_set in osdmap contiguous Signed-off-by: "Yan, Zheng" --- diff --git a/src/mds/SnapServer.cc b/src/mds/SnapServer.cc index 4bdbfd8e8fb..7e97ab8b0ef 100644 --- a/src/mds/SnapServer.cc +++ b/src/mds/SnapServer.cc @@ -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;