Skip to content

Commit

Permalink
mds: update projected_version when upgrading snaptable
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/38835
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
  • Loading branch information
ukernel committed Mar 28, 2019
1 parent 3335774 commit edf3bcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mds/SnapServer.h
Expand Up @@ -100,11 +100,12 @@ class SnapServer : public MDSTableServer {

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) {
Expand Down

0 comments on commit edf3bcb

Please sign in to comment.