Skip to content

Commit

Permalink
Merge pull request #46682 from lxbsz/wip-56016
Browse files Browse the repository at this point in the history
Pacific: mds: clear MDCache::rejoin_*_q queues before recovering file inodes

Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
  • Loading branch information
yuriw committed Jun 28, 2022
2 parents 5dff78a + 55f7959 commit 678ed0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mds/MDCache.cc
Expand Up @@ -6315,6 +6315,11 @@ void MDCache::identify_files_to_recover()
{
dout(10) << "identify_files_to_recover" << dendl;
int count = 0;

// Clear the recover and check queues in case the monitor sends rejoin mdsmap twice.
rejoin_recover_q.clear();
rejoin_check_q.clear();

for (auto &p : inode_map) {
CInode *in = p.second;
if (!in->is_auth())
Expand Down

0 comments on commit 678ed0d

Please sign in to comment.