Fix a race when undoConnectWithMaster changes mi->repl_transfer_s but the connection is not yet closed and the event handler runs
This commit is contained in:
parent
86f9888018
commit
1810f8af35
@ -2980,7 +2980,7 @@ void readSyncBulkPayload(connection *conn) {
|
||||
rdbSaveInfo rsi;
|
||||
redisMaster *mi = (redisMaster*)connGetPrivateData(conn);
|
||||
static int usemark = 0;
|
||||
if (mi == nullptr) {
|
||||
if (mi == nullptr || conn != mi->repl_transfer_s) {
|
||||
// We're about to be free'd so bail out
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user