File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1481,6 +1481,7 @@ class RGWMetaSyncShardCR : public RGWCoroutine {
14811481 bool done_with_period = false ;
14821482
14831483 int total_entries = 0 ;
1484+ string old_mdlog_marker;
14841485
14851486 RGWSyncTraceNodeRef tn;
14861487public:
@@ -1832,6 +1833,7 @@ class RGWMetaSyncShardCR : public RGWCoroutine {
18321833 if (mdlog_marker <= max_marker || !truncated) {
18331834 /* we're at the tip, try to bring more entries */
18341835 ldpp_dout (sync_env->dpp , 20 ) << __func__ << " :" << __LINE__ << " : shard_id=" << shard_id << " syncing mdlog for shard_id=" << shard_id << dendl;
1836+ old_mdlog_marker = mdlog_marker;
18351837 yield call (new RGWCloneMetaLogCoroutine (sync_env, mdlog,
18361838 period, shard_id,
18371839 mdlog_marker, &mdlog_marker));
@@ -1902,7 +1904,8 @@ class RGWMetaSyncShardCR : public RGWCoroutine {
19021904 tn->log (10 , SSTR (*this << " : done with period" ));
19031905 break ;
19041906 }
1905- if (mdlog_marker == max_marker && can_adjust_marker) {
1907+ if (mdlog_marker == old_mdlog_marker && can_adjust_marker) {
1908+ tn->log (20 , SSTR (" mdlog_marker=" << mdlog_marker << " old_mdlog_marker=" << old_mdlog_marker));
19061909 tn->unset_flag (RGW_SNS_FLAG_ACTIVE);
19071910 yield wait (utime_t (cct->_conf ->rgw_meta_sync_poll_interval , 0 ));
19081911 }
You can’t perform that action at this time.
0 commit comments