Skip to content

Commit 9d09ce3

Browse files
guiquanzantirez
guiquanz
authored andcommitted
Fixed many typos.
1 parent 61dfc2e commit 9d09ce3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+154
-154
lines changed

00-RELEASENOTES

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Also the following redis.conf and CONFIG GET / SET parameters changed name:
2626

2727
* hash-max-zipmap-entries, now replaced by hash-max-ziplist-entries
2828
* hash-max-zipmap-value, now replaced by hash-max-ziplist-value
29-
* glueoutputbuf was no completely removed as it does not make sense
29+
* glueoutputbuf was now completely removed as it does not make sense
3030

3131
---------
3232
CHANGELOG
@@ -46,7 +46,7 @@ UPGRADE URGENCY: We suggest new users to start with 2.6.0, and old users to
4646
in slaves.
4747
* Milliseconds resolution expires, also added new commands with milliseconds
4848
precision (PEXPIRE, PTTL, ...).
49-
* Clinets max output buffer soft and hard limits. You can specifiy different
49+
* Clients max output buffer soft and hard limits. You can specifiy different
5050
limits for different classes of clients (normal,pubsub,slave).
5151
* AOF is now able to rewrite aggregate data types using variadic commands,
5252
often producing an AOF that is faster to save, load, and is smaller in size.

redis.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ slave-priority 100
246246

247247
# Set the max number of connected clients at the same time. By default
248248
# this limit is set to 10000 clients, however if the Redis server is not
249-
# able ot configure the process file limit to allow for the specified limit
249+
# able to configure the process file limit to allow for the specified limit
250250
# the max number of allowed clients is set to the current file limit
251251
# minus 32 (as Redis reserves a few file descriptors for internal uses).
252252
#

sentinel.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ sentinel parallel-syncs mymaster 1
7171
# Default is 15 minutes.
7272
sentinel failover-timeout mymaster 900000
7373

74-
# SCRIPTS EXECTION
74+
# SCRIPTS EXECUTION
7575
#
7676
# sentinel notification-script and sentinel reconfig-script are used in order
7777
# to configure scripts that are called to notify the system administrator

src/adlist.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ list *listAddNodeHead(list *list, void *value)
9797
return list;
9898
}
9999

100-
/* Add a new node to the list, to tail, contaning the specified 'value'
100+
/* Add a new node to the list, to tail, containing the specified 'value'
101101
* pointer as value.
102102
*
103103
* On error, NULL is returned and no operation is performed (i.e. the
@@ -308,7 +308,7 @@ listNode *listSearchKey(list *list, void *key)
308308
/* Return the element at the specified zero-based index
309309
* where 0 is the head, 1 is the element next to head
310310
* and so on. Negative integers are used in order to count
311-
* from the tail, -1 is the last element, -2 the penultimante
311+
* from the tail, -1 is the last element, -2 the penultimate
312312
* and so on. If the index is out of range NULL is returned. */
313313
listNode *listIndex(list *list, long index) {
314314
listNode *n;
@@ -330,7 +330,7 @@ void listRotate(list *list) {
330330

331331
if (listLength(list) <= 1) return;
332332

333-
/* Detatch current tail */
333+
/* Detach current tail */
334334
list->tail = tail->prev;
335335
list->tail->next = NULL;
336336
/* Move it as head */

src/ae.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static int processTimeEvents(aeEventLoop *eventLoop) {
309309
/* Process every pending time event, then every pending file event
310310
* (that may be registered by time event callbacks just processed).
311311
* Without special flags the function sleeps until some file event
312-
* fires, or when the next time event occurrs (if any).
312+
* fires, or when the next time event occurs (if any).
313313
*
314314
* If flags is 0, the function does nothing and returns.
315315
* if flags has AE_ALL_EVENTS set, all the kind of events are processed.
@@ -356,7 +356,7 @@ int aeProcessEvents(aeEventLoop *eventLoop, int flags)
356356
if (tvp->tv_usec < 0) tvp->tv_usec = 0;
357357
} else {
358358
/* If we have to check for events but need to return
359-
* ASAP because of AE_DONT_WAIT we need to se the timeout
359+
* ASAP because of AE_DONT_WAIT we need to set the timeout
360360
* to zero */
361361
if (flags & AE_DONT_WAIT) {
362362
tv.tv_sec = tv.tv_usec = 0;
@@ -395,7 +395,7 @@ int aeProcessEvents(aeEventLoop *eventLoop, int flags)
395395
return processed; /* return the number of processed file/time events */
396396
}
397397

398-
/* Wait for millseconds until the given file descriptor becomes
398+
/* Wait for milliseconds until the given file descriptor becomes
399399
* writable/readable/exception */
400400
int aeWait(int fd, int mask, long long milliseconds) {
401401
struct pollfd pfd;

src/ae_evport.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ static int evport_debug = 0;
5050
* aeApiPoll, the corresponding file descriptors become dissociated from the
5151
* port. This is necessary because poll events are level-triggered, so if the
5252
* fd didn't become dissociated, it would immediately fire another event since
53-
* the underlying state hasn't changed yet. We must reassociate the file
53+
* the underlying state hasn't changed yet. We must re-associate the file
5454
* descriptor, but only after we know that our caller has actually read from it.
5555
* The ae API does not tell us exactly when that happens, but we do know that
5656
* it must happen by the time aeApiPoll is called again. Our solution is to
57-
* keep track of the last fds returned by aeApiPoll and reassociate them next
57+
* keep track of the last fds returned by aeApiPoll and re-associate them next
5858
* time aeApiPoll is invoked.
5959
*
6060
* To summarize, in this module, each fd association is EITHER (a) represented
61-
* only via the in-kernel assocation OR (b) represented by pending_fds and
61+
* only via the in-kernel association OR (b) represented by pending_fds and
6262
* pending_masks. (b) is only true for the last fds we returned from aeApiPoll,
6363
* and only until we enter aeApiPoll again (at which point we restore the
6464
* in-kernel association).
@@ -164,7 +164,7 @@ static int aeApiAddEvent(aeEventLoop *eventLoop, int fd, int mask) {
164164
* This fd was recently returned from aeApiPoll. It should be safe to
165165
* assume that the consumer has processed that poll event, but we play
166166
* it safer by simply updating pending_mask. The fd will be
167-
* reassociated as usual when aeApiPoll is called again.
167+
* re-associated as usual when aeApiPoll is called again.
168168
*/
169169
if (evport_debug)
170170
fprintf(stderr, "aeApiAddEvent: adding to pending fd %d\n", fd);
@@ -228,7 +228,7 @@ static void aeApiDelEvent(aeEventLoop *eventLoop, int fd, int mask) {
228228
* ENOMEM is a potentially transient condition, but the kernel won't
229229
* generally return it unless things are really bad. EAGAIN indicates
230230
* we've reached an resource limit, for which it doesn't make sense to
231-
* retry (counterintuitively). All other errors indicate a bug. In any
231+
* retry (counter-intuitively). All other errors indicate a bug. In any
232232
* of these cases, the best we can do is to abort.
233233
*/
234234
abort(); /* will not return */
@@ -243,7 +243,7 @@ static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) {
243243
port_event_t event[MAX_EVENT_BATCHSZ];
244244

245245
/*
246-
* If we've returned fd events before, we must reassociate them with the
246+
* If we've returned fd events before, we must re-associate them with the
247247
* port now, before calling port_get(). See the block comment at the top of
248248
* this file for an explanation of why.
249249
*/

src/anet.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int anetNonBlock(char *err, int fd)
6161
{
6262
int flags;
6363

64-
/* Set the socket nonblocking.
64+
/* Set the socket non-blocking.
6565
* Note that fcntl(2) for F_GETFL and F_SETFL can't be
6666
* interrupted by a signal. */
6767
if ((flags = fcntl(fd, F_GETFL)) == -1) {
@@ -132,7 +132,7 @@ static int anetCreateSocket(char *err, int domain) {
132132
return ANET_ERR;
133133
}
134134

135-
/* Make sure connection-intensive things like the redis benckmark
135+
/* Make sure connection-intensive things like the redis benchmark
136136
* will be able to close/open sockets a zillion of times */
137137
if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) == -1) {
138138
anetSetError(err, "setsockopt SO_REUSEADDR: %s", strerror(errno));

src/aof.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ void feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv, int a
385385
sds buf = sdsempty();
386386
robj *tmpargv[3];
387387

388-
/* The DB this command was targetting is not the same as the last command
388+
/* The DB this command was targeting is not the same as the last command
389389
* we appendend. To issue a SELECT command is needed. */
390390
if (dictid != server.aof_selected_db) {
391391
char seldb[64];

src/bio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static list *bio_jobs[REDIS_BIO_NUM_OPS];
7474
static unsigned long long bio_pending[REDIS_BIO_NUM_OPS];
7575

7676
/* This structure represents a background Job. It is only used locally to this
77-
* file as the API deos not expose the internals at all. */
77+
* file as the API does not expose the internals at all. */
7878
struct bio_job {
7979
time_t time; /* Time at which the job was created. */
8080
/* Job specific arguments pointers. If we need to pass more than three

src/bitops.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Helpers and low level bit functions.
3535
* -------------------------------------------------------------------------- */
3636

37-
/* This helper function used by GETBIT / SETBIT parses the bit offset arguemnt
37+
/* This helper function used by GETBIT / SETBIT parses the bit offset argument
3838
* making sure an error is returned if it is negative or if it overflows
3939
* Redis 512 MB limit for the string value. */
4040
static int getBitOffsetFromArgument(redisClient *c, robj *o, size_t *offset) {
@@ -189,7 +189,7 @@ void bitopCommand(redisClient *c) {
189189
char *opname = c->argv[1]->ptr;
190190
robj *o, *targetkey = c->argv[2];
191191
long op, j, numkeys;
192-
robj **objects; /* Array of soruce objects. */
192+
robj **objects; /* Array of source objects. */
193193
unsigned char **src; /* Array of source strings pointers. */
194194
long *len, maxlen = 0; /* Array of length of src strings, and max len. */
195195
long minlen = 0; /* Min len among the input keys. */

src/cluster.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ int clusterLoadConfig(char *filename) {
177177
return REDIS_OK;
178178

179179
fmterr:
180-
redisLog(REDIS_WARNING,"Unrecovarable error: corrupted cluster config file.");
180+
redisLog(REDIS_WARNING,"Unrecoverable error: corrupted cluster config file.");
181181
fclose(fp);
182182
exit(1);
183183
}
@@ -985,7 +985,7 @@ void clusterCron(void) {
985985
time_t min_ping_sent = 0;
986986
clusterNode *min_ping_node = NULL;
987987

988-
/* Check if we have disconnected nodes and reestablish the connection. */
988+
/* Check if we have disconnected nodes and re-establish the connection. */
989989
di = dictGetIterator(server.cluster.nodes);
990990
while((de = dictNext(di)) != NULL) {
991991
clusterNode *node = dictGetVal(de);
@@ -1069,7 +1069,7 @@ void clusterCron(void) {
10691069
clusterUpdateState();
10701070
}
10711071
} else {
1072-
/* Timeout reached. Set the noad se possibly failing if it is
1072+
/* Timeout reached. Set the node as possibly failing if it is
10731073
* not already in this state. */
10741074
if (!(node->flags & (REDIS_NODE_PFAIL|REDIS_NODE_FAIL))) {
10751075
redisLog(REDIS_DEBUG,"*** NODE %.40s possibly failing",
@@ -1803,7 +1803,7 @@ void migrateCommand(redisClient *c) {
18031803
redisAssertWithInfo(c,NULL,rioWriteBulkString(&cmd,c->argv[3]->ptr,sdslen(c->argv[3]->ptr)));
18041804
redisAssertWithInfo(c,NULL,rioWriteBulkLongLong(&cmd,ttl));
18051805

1806-
/* Emit the payload argument, that is the serailized object using
1806+
/* Emit the payload argument, that is the serialized object using
18071807
* the DUMP format. */
18081808
createDumpPayload(&payload,o);
18091809
redisAssertWithInfo(c,NULL,rioWriteBulkString(&cmd,payload.io.buffer.ptr,
@@ -1815,7 +1815,7 @@ void migrateCommand(redisClient *c) {
18151815
if (replace)
18161816
redisAssertWithInfo(c,NULL,rioWriteBulkString(&cmd,"REPLACE",7));
18171817

1818-
/* Tranfer the query to the other node in 64K chunks. */
1818+
/* Transfer the query to the other node in 64K chunks. */
18191819
errno = 0;
18201820
{
18211821
sds buf = cmd.io.buffer.ptr;
@@ -1882,7 +1882,7 @@ void migrateCommand(redisClient *c) {
18821882
}
18831883

18841884
/* The ASKING command is required after a -ASK redirection.
1885-
* The client should issue ASKING before to actualy send the command to
1885+
* The client should issue ASKING before to actually send the command to
18861886
* the target instance. See the Redis Cluster specification for more
18871887
* information. */
18881888
void askingCommand(redisClient *c) {

src/config.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void loadServerConfigFromString(char *config) {
333333
goto loaderr;
334334
}
335335

336-
/* If the target command name is the emtpy string we just
336+
/* If the target command name is the empty string we just
337337
* remove it from the command table. */
338338
retval = dictDelete(server.commands, argv[1]);
339339
redisAssert(retval == DICT_OK);
@@ -378,7 +378,7 @@ void loadServerConfigFromString(char *config) {
378378
soft = memtoll(argv[3],NULL);
379379
soft_seconds = atoi(argv[4]);
380380
if (soft_seconds < 0) {
381-
err = "Negative number of seconds in soft limt is invalid";
381+
err = "Negative number of seconds in soft limit is invalid";
382382
goto loaderr;
383383
}
384384
server.client_obuf_limits[class].hard_limit_bytes = hard;
@@ -423,7 +423,7 @@ void loadServerConfigFromString(char *config) {
423423
* in the 'options' string to the config file before loading.
424424
*
425425
* Both filename and options can be NULL, in such a case are considered
426-
* emtpy. This way loadServerConfig can be used to just load a file or
426+
* empty. This way loadServerConfig can be used to just load a file or
427427
* just load a string. */
428428
void loadServerConfig(char *filename, char *options) {
429429
sds config = sdsempty();

src/crc16.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030
*/
3131

32-
/* CRC16 implementation acording to CCITT standards.
32+
/* CRC16 implementation according to CCITT standards.
3333
*
3434
* Note by @antirez: this is actually the XMODEM CRC 16 algorithm, using the
3535
* following parameters:

src/db.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ robj *lookupKey(redisDb *db, robj *key) {
4444
if (de) {
4545
robj *val = dictGetVal(de);
4646

47-
/* Update the access time for the aging algorithm.
47+
/* Update the access time for the ageing algorithm.
4848
* Don't do it if we have a saving child, as this will trigger
4949
* a copy on write madness. */
5050
if (server.rdb_child_pid == -1 && server.aof_child_pid == -1)
@@ -85,7 +85,7 @@ robj *lookupKeyWriteOrReply(redisClient *c, robj *key, robj *reply) {
8585
}
8686

8787
/* Add the key to the DB. It's up to the caller to increment the reference
88-
* counte of the value if needed.
88+
* counter of the value if needed.
8989
*
9090
* The program is aborted if the key already exists. */
9191
void dbAdd(redisDb *db, robj *key, robj *val) {
@@ -549,7 +549,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
549549
* for *AT variants of the command, or the current time for relative expires).
550550
*
551551
* unit is either UNIT_SECONDS or UNIT_MILLISECONDS, and is only used for
552-
* the argv[2] parameter. The basetime is always specified in milliesconds. */
552+
* the argv[2] parameter. The basetime is always specified in milliseconds. */
553553
void expireGenericCommand(redisClient *c, long long basetime, int unit) {
554554
dictEntry *de;
555555
robj *key = c->argv[1], *param = c->argv[2];

src/debug.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/* ================================= Debugging ============================== */
4545

4646
/* Compute the sha1 of string at 's' with 'len' bytes long.
47-
* The SHA1 is then xored againt the string pointed by digest.
47+
* The SHA1 is then xored against the string pointed by digest.
4848
* Since xor is commutative, this operation is used in order to
4949
* "add" digests relative to unordered elements.
5050
*
@@ -69,7 +69,7 @@ void xorObjectDigest(unsigned char *digest, robj *o) {
6969
}
7070

7171
/* This function instead of just computing the SHA1 and xoring it
72-
* against diget, also perform the digest of "digest" itself and
72+
* against digest, also perform the digest of "digest" itself and
7373
* replace the old value with the new one.
7474
*
7575
* So the final digest will be:

src/dict.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static int _dictExpandIfNeeded(dict *d)
610610
/* Incremental rehashing already in progress. Return. */
611611
if (dictIsRehashing(d)) return DICT_OK;
612612

613-
/* If the hash table is empty expand it to the intial size. */
613+
/* If the hash table is empty expand it to the initial size. */
614614
if (d->ht[0].size == 0) return dictExpand(d, DICT_HT_INITIAL_SIZE);
615615

616616
/* If we reached the 1:1 ratio, and we are allowed to resize the hash

src/lzfP.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@
9393

9494
/*
9595
* Avoid assigning values to errno variable? for some embedding purposes
96-
* (linux kernel for example), this is neccessary. NOTE: this breaks
96+
* (linux kernel for example), this is necessary. NOTE: this breaks
9797
* the documentation in lzf.h.
9898
*/
9999
#ifndef AVOID_ERRNO
100100
# define AVOID_ERRNO 0
101101
#endif
102102

103103
/*
104-
* Wether to pass the LZF_STATE variable as argument, or allocate it
104+
* Whether to pass the LZF_STATE variable as argument, or allocate it
105105
* on the stack. For small-stack environments, define this to 1.
106106
* NOTE: this breaks the prototype in lzf.h.
107107
*/
@@ -110,11 +110,11 @@
110110
#endif
111111

112112
/*
113-
* Wether to add extra checks for input validity in lzf_decompress
113+
* Whether to add extra checks for input validity in lzf_decompress
114114
* and return EINVAL if the input stream has been corrupted. This
115115
* only shields against overflowing the input buffer and will not
116116
* detect most corrupted streams.
117-
* This check is not normally noticable on modern hardware
117+
* This check is not normally noticeable on modern hardware
118118
* (<1% slowdown), but might slow down older cpus considerably.
119119
*/
120120
#ifndef CHECK_INPUT

src/mkreleasehdr.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GIT_DIRTY=`git diff 2> /dev/null | wc -l`
44
BUILD_ID=`uname -n`"-"`date +%s`
55
test -f release.h || touch release.h
66
(cat release.h | grep SHA1 | grep $GIT_SHA1) && \
7-
(cat release.h | grep DIRTY | grep $GIT_DIRTY) && exit 0 # Already uptodate
7+
(cat release.h | grep DIRTY | grep $GIT_DIRTY) && exit 0 # Already up-to-date
88
echo "#define REDIS_GIT_SHA1 \"$GIT_SHA1\"" > release.h
99
echo "#define REDIS_GIT_DIRTY \"$GIT_DIRTY\"" >> release.h
1010
echo "#define REDIS_BUILD_ID \"$BUILD_ID\"" >> release.h

src/multi.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void discardCommand(redisClient *c) {
102102
}
103103

104104
/* Send a MULTI command to all the slaves and AOF file. Check the execCommand
105-
* implememntation for more information. */
105+
* implementation for more information. */
106106
void execCommandReplicateMulti(redisClient *c) {
107107
robj *multistring = createStringObject("MULTI",5);
108108

@@ -223,7 +223,7 @@ void watchForKey(redisClient *c, robj *key) {
223223
incrRefCount(key);
224224
}
225225
listAddNodeTail(clients,c);
226-
/* Add the new key to the lits of keys watched by this client */
226+
/* Add the new key to the list of keys watched by this client */
227227
wk = zmalloc(sizeof(*wk));
228228
wk->key = key;
229229
wk->db = c->db;

0 commit comments

Comments
 (0)