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()
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) {