mds: clear correct state bit in do_file_recover

The RECOVERING bit is set, not NEEDSRECOVER.  This way we match
_recovered().

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-06-10 09:25:49 -07:00
parent 20d11b0b14
commit c2de9e6a48

View File

@ -5006,7 +5006,7 @@ void MDCache::do_file_recover()
} else {
dout(10) << "do_file_recover skipping " << in->inode.size
<< " " << *in << dendl;
in->state_clear(CInode::STATE_NEEDSRECOVER);
in->state_clear(CInode::STATE_RECOVERING);
in->auth_unpin(this);
if (in->filelock.is_stable()) {
bool need_issue = false;