summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2019-10-28 09:58:38 +0100
committerGitHub <noreply@github.com>2019-10-28 09:58:38 +0100
commite097c99681b97ae55469a30c18380f9157b9e193 (patch)
tree5c34cf52cf49ab69366276c48b17b396ab761134
parent6f2fc34228f9b4698d6b1f63544225f6cd11db18 (diff)
parentfb1f4f4e7e4a7a1fd5366afe5581ac6613047faf (diff)
downloadredis-e097c99681b97ae55469a30c18380f9157b9e193.tar.gz
Merge pull request #4761 from WJWH/minor-typos
Fix some minor typos in comments
-rw-r--r--src/rdb.c2
-rw-r--r--src/replication.c6
-rw-r--r--src/server.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/rdb.c b/src/rdb.c
index 2406ea88a..c92b9f4a1 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -2289,7 +2289,7 @@ void backgroundSaveDoneHandlerDisk(int exitcode, int bysignal) {
}
/* A background saving child (BGSAVE) terminated its work. Handle this.
- * This function covers the case of RDB -> Salves socket transfers for
+ * This function covers the case of RDB -> Slaves socket transfers for
* diskless replication. */
void backgroundSaveDoneHandlerSocket(int exitcode, int bysignal) {
if (!bysignal && exitcode == 0) {
diff --git a/src/replication.c b/src/replication.c
index 3c916c9a7..4550e6a83 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -256,7 +256,7 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
while((ln = listNext(&li))) {
client *slave = ln->value;
- /* Don't feed slaves that are still waiting for BGSAVE to start */
+ /* Don't feed slaves that are still waiting for BGSAVE to start. */
if (slave->replstate == SLAVE_STATE_WAIT_BGSAVE_START) continue;
/* Feed slaves that are waiting for the initial SYNC (so these commands
@@ -295,7 +295,7 @@ void replicationFeedSlavesFromMasterStream(list *slaves, char *buf, size_t bufle
while((ln = listNext(&li))) {
client *slave = ln->value;
- /* Don't feed slaves that are still waiting for BGSAVE to start */
+ /* Don't feed slaves that are still waiting for BGSAVE to start. */
if (slave->replstate == SLAVE_STATE_WAIT_BGSAVE_START) continue;
addReplyProto(slave,buf,buflen);
}
@@ -585,7 +585,7 @@ int startBgsaveForReplication(int mincapa) {
}
/* If we failed to BGSAVE, remove the slaves waiting for a full
- * resynchorinization from the list of slaves, inform them with
+ * resynchronization from the list of slaves, inform them with
* an error about what happened, close the connection ASAP. */
if (retval == C_ERR) {
serverLog(LL_WARNING,"BGSAVE for replication failed");
diff --git a/src/server.c b/src/server.c
index 77db810b2..68b9e0f84 100644
--- a/src/server.c
+++ b/src/server.c
@@ -3208,7 +3208,7 @@ void preventCommandReplication(client *c) {
* CMD_CALL_STATS Populate command stats.
* CMD_CALL_PROPAGATE_AOF Append command to AOF if it modified the dataset
* or if the client flags are forcing propagation.
- * CMD_CALL_PROPAGATE_REPL Send command to salves if it modified the dataset
+ * CMD_CALL_PROPAGATE_REPL Send command to slaves if it modified the dataset
* or if the client flags are forcing propagation.
* CMD_CALL_PROPAGATE Alias for PROPAGATE_AOF|PROPAGATE_REPL.
* CMD_CALL_FULL Alias for SLOWLOG|STATS|PROPAGATE.