]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: update projected_version when upgrading snaptable
authorYan, Zheng <zyan@redhat.com>
Thu, 28 Mar 2019 10:03:31 +0000 (18:03 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 28 Mar 2019 10:04:17 +0000 (18:04 +0800)
Fixes: http://tracker.ceph.com/issues/38835
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/SnapServer.h

index 0fee9db9a103959ddcc596cfeaea737d42e4138d..a3f9f7db590a56b68457eeb108814784724d9dbf 100644 (file)
@@ -100,11 +100,12 @@ public:
 
   bool upgrade_format() {
     // upgraded from old filesystem
+    ceph_assert(is_active());
     ceph_assert(last_snap > 0);
     bool upgraded = false;
     if (get_version() == 0) {
       // version 0 confuses snapclient code
-      reset_state();
+      reset();
       upgraded = true;
     }
     if (snaprealm_v2_since == CEPH_NOSNAP) {