From 71626d01eacacf83810b5889327fa11c07ced0c8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 23 Feb 2010 21:01:32 -0800 Subject: [PATCH] mds: correctly set root inode_auth during recovery Set to root node id as indicated by mdsmap. Setting the auth bit alone isn't sufficient. --- src/mds/MDCache.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index a8434428d72cc..da5c06b4cda35 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -2666,7 +2666,8 @@ void MDCache::recalc_auth_bits() { dout(7) << "recalc_auth_bits" << dendl; - if (mds->whoami != mds->mdsmap->get_root()) + root->inode_auth.first = mds->mdsmap->get_root(); + if (mds->whoami != root->inode_auth.first) root->state_clear(CInode::STATE_AUTH); set subtree_inodes; -- 2.39.5