docs: Fix some typos in comments and log messge (#7975)
This commit is contained in:
parent
39436b2152
commit
6987176059
@ -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();
|
||||
|
2
src/db.c
2
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) {
|
||||
|
@ -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];
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user