Skip to content

Commit

Permalink
spellcheck fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naglera committed Feb 21, 2024
1 parent e6bc18a commit 9edeec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ void replconfCommand(client *c) {
c->slave_req &= ~SLAVE_REQ_RDB_CHANNEL;
}
} else if (!strcasecmp(c->argv[j]->ptr, "main-conn") && server.rdb_channel_enabled) {
/* REPLCONF main-conn is used to identify the replica main connection durig
/* REPLCONF main-conn is used to identify the replica main connection during
* rdb-connection sync. It also means that if psync is impossible, master
* should not auto trigger full sync.
* If rdb-channel is disable on this master, treat this command as unrecognized
Expand Down Expand Up @@ -3072,7 +3072,7 @@ int slaveTryPartialResynchronization(connection *conn, int read_reply) {

if (!strncmp(reply,"+CONTINUE",9)) {
if (server.repl_rdb_conn_state != REPL_RDB_CONN_STATE_NONE) {
/* During rdb-sync sesseion, master struct is already initilized. */
/* During rdb-sync sesseion, master struct is already initialized. */
return PSYNC_CONTINUE;
}
/* Partial resync was accepted. */
Expand Down
2 changes: 1 addition & 1 deletion src/rio.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ static size_t rioConnsetWrite(rio *r, const void *buf, size_t len) {
int broken = 0;
for (j = 0; j < r->io.connset.numconns; j++) {
if (r->io.connset.state[j] != 0) {
/* Skip FDs alraedy in error. */
/* Skip FDs already in error. */
broken++;
continue;
}
Expand Down

0 comments on commit 9edeec3

Please sign in to comment.