From c2de9e6a484ea9edeedd7a9aad53d8cd019ca807 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 10 Jun 2011 09:25:49 -0700 Subject: [PATCH] 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 --- src/mds/MDCache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 0ebdc8aa351fa..d83edba56f4f2 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -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; -- 2.39.5