]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: update projected_version when upgrading snaptable 29222/head
authorYan, Zheng <zyan@redhat.com>
Thu, 28 Mar 2019 10:03:31 +0000 (18:03 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 23 Jul 2019 15:25:12 +0000 (17:25 +0200)
Fixes: http://tracker.ceph.com/issues/38835
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit edf3bcbfa984ea817a9ac5411af23e5a7c29d3d8)

Conflicts:
src/mds/SnapServer.h
- ceph_assert()

src/mds/SnapServer.h

index 7b9c4af9e47fd5863f62d3fd14637abbf7b942e9..4a27dcc84d3cd8ad16e3b2eaf79fce063203fd7b 100644 (file)
@@ -100,11 +100,12 @@ public:
 
   bool upgrade_format() {
     // upgraded from old filesystem
+    assert(is_active());
     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) {