It's possible mds's state is RESOLVE and mds's want_state is
RECONNCT or STATE_REJOIN. MDCache::resolve_done is null in that
case.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
dout(10) << "maybe_resolve_finish got all resolves+resolve_acks, done." << dendl;
disambiguate_imports();
finish_committed_masters();
- if (mds->is_resolve()) {
+
+ if (resolve_done) {
+ assert(mds->is_resolve());
trim_unlinked_inodes();
recalc_auth_bits(false);
- assert(resolve_done != NULL);
resolve_done->complete(0);
resolve_done = NULL;
} else {