From: "Yan, Zheng" <[email protected]>

It's possible that MDS receives cache expire in EXPORT_LOGGINGFINISH
and EXPORT_NOTIFYING states.

Signed-off-by: Yan, Zheng <[email protected]>
---
 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 326e9d7..fe100f9 100644
--- a/src/mds/MDCache.cc
+++ b/src/mds/MDCache.cc
@@ -5924,7 +5924,7 @@ void MDCache::handle_cache_expire(MCacheExpire *m)
          (parent_dir->is_auth() && parent_dir->is_exporting() &&
           ((migrator->get_export_state(parent_dir) == Migrator::EXPORT_WARNING 
&&
             migrator->export_has_warned(parent_dir,from)) ||
-           migrator->get_export_state(parent_dir) == 
Migrator::EXPORT_EXPORTING))) {
+           migrator->get_export_state(parent_dir) >= 
Migrator::EXPORT_EXPORTING))) {
        // not auth.
        dout(7) << "delaying nonauth|warned expires for " << *parent_dir << 
dendl;
        assert(parent_dir->is_frozen_tree_root());
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to