]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: clear the recover and check queues in front of identify_files_to_recover() 46682/head
authorXiubo Li <xiubli@redhat.com>
Wed, 19 Jan 2022 09:27:08 +0000 (17:27 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 15 Jun 2022 01:56:22 +0000 (09:56 +0800)
commit55f79590ee887360ded85fdddbb766e995e60cd7
tree98654beb0c7d254329348e41d55fd09ed628c735
parentc673a842165dd7b9cff75b35e47e67cfd5ce8879
mds: clear the recover and check queues in front of identify_files_to_recover()

If the monitor sends rejoin mdsmap twice just before the first time
hasn't finished yet, it may run identify_files_to_recover() twice.
Since the rejoin_recover_q and rejoin_check_q were vector so there
could be duplicated inodes.

Fixes: https://tracker.ceph.com/issues/53741
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit d82bdd8e4255585512a963c87c8300be8dc26420)
src/mds/MDCache.cc