From 3c3f7a1dafd0aff5919293748ad0f8d88d3658b2 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Thu, 20 Oct 2016 17:42:08 +0800 Subject: [PATCH] mds: add debug assertion for issue #17636 Signed-off-by: Yan, Zheng --- src/mds/Migrator.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 501216d079e..07e2e090c9b 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -922,7 +922,7 @@ void Migrator::export_frozen(CDir *dir, uint64_t tid) } assert(it->second.state == EXPORT_FREEZING); - assert(dir->is_frozen()); + assert(dir->is_frozen_tree_root()); assert(dir->get_cum_auth_pins() == 0); CInode *diri = dir->get_inode(); @@ -1220,6 +1220,7 @@ void Migrator::export_go_synced(CDir *dir, uint64_t tid) it->second.state = EXPORT_EXPORTING; assert(g_conf->mds_kill_export_at != 7); + assert(dir->is_frozen_tree_root()); assert(dir->get_cum_auth_pins() == 0); // set ambiguous auth -- 2.47.3