Skip to content

Commit f9425e5

Browse files
committed
fix: Solve the problem of expired BinlogSync request causing master-slave synchronization to get stuck
1 parent 590afe9 commit f9425e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pika_repl_bgworker.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ void PikaReplBgWorker::HandleBGWorkerWriteBinlog(void* arg) {
126126
<< " expected_session: " << binlog_res.session_id()
127127
<< ", actual_session:" << slave_db->MasterSessionId();
128128
LOG(WARNING) << "Check Session failed " << binlog_res.slot().db_name();
129-
slave_db->SetReplState(ReplState::kTryConnect);
129+
// ignore expired task
130+
// slave_db->SetReplState(ReplState::kTryConnect);
130131
return;
131132
}
132133

0 commit comments

Comments
 (0)