Skip to content

Commit

Permalink
Implement dynamic string handling for flexibility and scalability.
Browse files Browse the repository at this point in the history
Co-authored-by: Viktor Söderqvist <[email protected]>
Signed-off-by: naglera <[email protected]>
  • Loading branch information
naglera and zuiderkwast authored Jul 7, 2024
1 parent 9dc40d2 commit 9959da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -3129,7 +3129,7 @@ int replicaTryPartialResynchronization(connection *conn, int read_reply) {
return PSYNC_TRY_LATER;
}

if (!strncmp(reply, "+DUALCONNECTIONSYNC", 15)) {
if (!strncmp(reply, "+DUALCONNECTIONSYNC", strlen("+DUALCONNECTIONSYNC")) {
/* A response of +DUALCONNECTIONSYNC from the primary implies that partial
* synchronization is not possible and that the primary supports full
* sync using dedicated RDB connection. Full sync will continue that way. */
Expand Down

0 comments on commit 9959da8

Please sign in to comment.