From e535f7f2b984eeab02140388ac6bc40133eda78c Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Thu, 20 Mar 2014 13:05:31 +0800 Subject: [PATCH] mds: avoid journaling non-auth opened inode Exporting inode has AUTH bit set while EExport event is being journaled. Signed-off-by: Yan, Zheng --- src/mds/journal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/journal.cc b/src/mds/journal.cc index 0c6f6694a2314..45d62ea315de8 100644 --- a/src/mds/journal.cc +++ b/src/mds/journal.cc @@ -157,7 +157,7 @@ void LogSegment::try_to_expire(MDS *mds, C_GatherBuilder &gather_bld) CInode *in = *p; assert(in->last == CEPH_NOSNAP); ++p; - if (in->is_auth() && in->is_any_caps()) { + if (in->is_auth() && !in->is_ambiguous_auth() && in->is_any_caps()) { if (in->is_any_caps_wanted()) { dout(20) << "try_to_expire requeueing open file " << *in << dendl; if (!le) { -- 2.39.5