mds: resolve cleanup

Only track ambiguous imports and such if we get a resolve message while in
the resolve state.

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2010-11-19 13:58:31 -08:00
parent 0dddf4537e
commit cd53719f3c

View File

@ -2503,7 +2503,7 @@ void MDCache::handle_resolve(MMDSResolve *m)
show_subtrees();
if (mds->is_resolve()) {
// note ambiguous imports too
for (map<dirfrag_t, vector<dirfrag_t> >::iterator pi = m->ambiguous_imports.begin();
pi != m->ambiguous_imports.end();
@ -2516,6 +2516,7 @@ void MDCache::handle_resolve(MMDSResolve *m)
got_resolve.insert(from);
maybe_resolve_finish();
}
m->put();
}