]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add debug assertion for issue #17636 11576/head
authorYan, Zheng <zyan@redhat.com>
Thu, 20 Oct 2016 09:42:08 +0000 (17:42 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 20 Oct 2016 09:42:08 +0000 (17:42 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/Migrator.cc

index 501216d079e19686e50076605eae42e471625486..07e2e090c9b71ce02e87d73699d6b19a4b467c47 100644 (file)
@@ -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