File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1816,7 +1816,11 @@ class MDSRank::C_MDS_StandbyReplayRestartFinish : public MDSIOContext {
18161816
18171817void MDSRank::_standby_replay_restart_finish (int r, uint64_t old_read_pos)
18181818{
1819- if (old_read_pos < mdlog->get_journaler ()->get_trimmed_pos ()) {
1819+ auto trimmed_pos = mdlog->get_journaler ()->get_trimmed_pos ();
1820+ dout (20 ) << __func__ << " :"
1821+ << " old_read_pos=" << old_read_pos
1822+ << " trimmed_pos=" << trimmed_pos << dendl;
1823+ if (old_read_pos < trimmed_pos) {
18201824 dout (0 ) << " standby MDS fell behind active MDS journal's expire_pos, restarting" << dendl;
18211825 respawn (); /* we're too far back, and this is easier than
18221826 trying to reset everything in the cache, etc */
You can’t perform that action at this time.
0 commit comments