]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix race between submitting EImportFinish and SubtreeMap
authorYan, Zheng <zyan@redhat.com>
Wed, 18 Jan 2017 02:53:00 +0000 (10:53 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 19 Jan 2017 06:59:20 +0000 (14:59 +0800)
commit3100af0c2aefe4b9dbf5910d3cd0ef6bdf6fd693
tree61e90fb6f9ebd5604ebeb21475c1119d306f324c
parente7d6c854d66a44ceb67209661df4af8123c297bf
mds: fix race between submitting EImportFinish and SubtreeMap

MDCache::create_subtree_map() use MDCache::my_ambiguous_imports
and Migrator::is_ambiguous_import() to decide if a subtree is
ambiguous import.  Submitting log event can start new segment
and submit an extra SubtreeMap. So before submitting EImportFinish
event, we need to cleanup MDCache::my_ambiguous_imports and
Migrator::import_state.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/MDCache.cc
src/mds/Migrator.cc