summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/childinfo.c2
-rw-r--r--src/db.c2
-rw-r--r--src/dict.c2
-rw-r--r--src/rdb.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/childinfo.c b/src/childinfo.c
index f95ae9647..d11aa7bcf 100644
--- a/src/childinfo.c
+++ b/src/childinfo.c
@@ -36,7 +36,7 @@
void openChildInfoPipe(void) {
if (pipe(server.child_info_pipe) == -1) {
/* On error our two file descriptors should be still set to -1,
- * but we call anyway cloesChildInfoPipe() since can't hurt. */
+ * but we call anyway closeChildInfoPipe() since can't hurt. */
closeChildInfoPipe();
} else if (anetNonBlock(NULL,server.child_info_pipe[0]) != ANET_OK) {
closeChildInfoPipe();
diff --git a/src/db.c b/src/db.c
index a26280719..0f37c7441 100644
--- a/src/db.c
+++ b/src/db.c
@@ -1691,7 +1691,7 @@ void slotToKeyFlush(void) {
sizeof(server.cluster->slots_keys_count));
}
-/* Pupulate the specified array of objects with keys in the specified slot.
+/* Populate the specified array of objects with keys in the specified slot.
* New objects are returned to represent keys, it's up to the caller to
* decrement the reference count to release the keys names. */
unsigned int getKeysInSlot(unsigned int hashslot, robj **keys, unsigned int count) {
diff --git a/src/dict.c b/src/dict.c
index 4760a5d26..57287442a 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -759,7 +759,7 @@ dictEntry *dictGetFairRandomKey(dict *d) {
/* Note that dictGetSomeKeys() may return zero elements in an unlucky
* run() even if there are actually elements inside the hash table. So
* when we get zero, we call the true dictGetRandomKey() that will always
- * yeld the element if the hash table has at least one. */
+ * yield the element if the hash table has at least one. */
if (count == 0) return dictGetRandomKey(d);
unsigned int idx = rand() % count;
return entries[idx];
diff --git a/src/rdb.c b/src/rdb.c
index 9301cdf71..db5698c1d 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -1419,7 +1419,7 @@ int rdbSaveBackground(char *filename, rdbSaveInfo *rsi) {
/* Note that we may call this function in signal handle 'sigShutdownHandler',
* so we need guarantee all functions we call are async-signal-safe.
- * If we call this function from signal handle, we won't call bg_unlik that
+ * If we call this function from signal handle, we won't call bg_unlink that
* is not async-signal-safe. */
void rdbRemoveTempFile(pid_t childpid, int from_signal) {
char tmpfile[256];
@@ -1892,7 +1892,7 @@ robj *rdbLoadObject(int rdbtype, rio *rdb, sds key) {
return NULL;
}
if (!raxInsert(cgroup->pel,rawid,sizeof(rawid),nack,NULL))
- rdbExitReportCorruptRDB("Duplicated gobal PEL entry "
+ rdbExitReportCorruptRDB("Duplicated global PEL entry "
"loading stream consumer group");
}