Skip to content

Commit

Permalink
fix: clean up refactoring leftovers
Browse files Browse the repository at this point in the history
This commit addresses issues that were likely introduced during
a rebase related to: valkey-io@b0f23df

Change dual channel replication state in main handler only

Signed-off-by: naglera <[email protected]>
  • Loading branch information
naglera committed Nov 5, 2024
1 parent 2743b7e commit cdbd845
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -3237,7 +3237,6 @@ int dualChannelReplMainConnSendHandshake(connection *conn, sds *err) {
ull2string(llstr, sizeof(llstr), server.rdb_client_id);
*err = sendCommand(conn, "REPLCONF", "set-rdb-client-id", llstr, NULL);
if (*err) return C_ERR;
server.repl_state = REPL_STATE_RECEIVE_CAPA_REPLY;
return C_OK;
}

Expand All @@ -3248,7 +3247,6 @@ int dualChannelReplMainConnRecvCapaReply(connection *conn, sds *err) {
serverLog(LL_NOTICE, "Primary does not understand REPLCONF identify: %s", *err);
return C_ERR;
}
server.repl_state = REPL_STATE_SEND_PSYNC;
return C_OK;
}

Expand All @@ -3259,7 +3257,6 @@ int dualChannelReplMainConnSendPsync(connection *conn, sds *err) {
*err = sdsnew(connGetLastError(conn));
return C_ERR;
}
server.repl_state = REPL_STATE_RECEIVE_PSYNC_REPLY;
return C_OK;
}

Expand Down

0 comments on commit cdbd845

Please sign in to comment.