From dcca146067b8b6ab1bf63289297ff841431bbcda Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Mon, 25 Apr 2011 14:40:09 -0700 Subject: [PATCH] mds: Don't twiddle lock states in the middle of an import. This should have gone in a028c8954ca240ec9a12682678aaee02eb507ae3. Signed-off-by: Greg Farnum --- 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 f832a5ffeb36c..34892509a85c5 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -1264,7 +1264,7 @@ void MDCache::adjust_subtree_after_rename(CInode *diri, CDir *olddir, // did auth change? if (oldparent->authority() != newparent->authority()) - adjust_subtree_auth(dir, oldparent->authority()); // caller is responsible for *diri. + adjust_subtree_auth(dir, oldparent->authority(), !imported); // caller is responsible for *diri. } } -- 2.39.5