From a7dbe37d53075118c6db37848007df49ca69ce9a Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 7 Jun 2018 14:36:56 +0200 Subject: [PATCH] Typo: entires -> entries in several places. --- src/cluster.c | 2 +- src/t_stream.c | 8 ++++---- src/ziplist.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cluster.c b/src/cluster.c index f457280b..17ba6a74 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -2377,7 +2377,7 @@ void clusterSendPing(clusterLink *link, int type) { * same time. * * Since we have non-voting slaves that lower the probability of an entry - * to feature our node, we set the number of entires per packet as + * to feature our node, we set the number of entries per packet as * 10% of the total nodes we have. */ wanted = floor(dictSize(server.cluster->nodes)/10); if (wanted < 3) wanted = 3; diff --git a/src/t_stream.c b/src/t_stream.c index 71ed6318..e6538bd8 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -222,7 +222,7 @@ int streamAppendItem(stream *s, robj **argv, int numfields, streamID *added_id, * +-------+---------+------------+---------+--/--+---------+---------+-+ * * count and deleted just represent respectively the total number of - * entires inside the listpack that are valid, and marked as deleted + * entries inside the listpack that are valid, and marked as deleted * (delted flag in the entry flags set). So the total number of items * actually inside the listpack (both deleted and not) is count+deleted. * @@ -235,7 +235,7 @@ int streamAppendItem(stream *s, robj **argv, int numfields, streamID *added_id, * * The "0" entry at the end is the same as the 'lp-count' entry in the * regular stream entries (see below), and marks the fact that there are - * no more entires, when we scan the stream from right to left. */ + * no more entries, when we scan the stream from right to left. */ /* First of all, check if we can append to the current macro node or * if we need to switch to the next one. 'lp' will be set to NULL if @@ -832,7 +832,7 @@ void streamPropagateXCLAIM(client *c, robj *key, robj *group, robj *id, streamNA * Note that this function is recursive in certian cases. When it's called * with a non NULL group and consumer argument, it may call * streamReplyWithRangeFromConsumerPEL() in order to get entries from the - * consumer pending entires list. However such a function will then call + * consumer pending entries list. However such a function will then call * streamReplyWithRange() in order to emit single entries (found in the * PEL by ID) to the client. This is the use case for the STREAM_RWR_RAWENTRIES * flag. @@ -1840,7 +1840,7 @@ void xpendingCommand(client *c) { * becomes the specified . If the minimum idle time specified * is zero, messages are claimed regardless of their idle time. * - * All the messages that cannot be found inside the pending entires list + * All the messages that cannot be found inside the pending entries list * are ignored, but in case the FORCE option is used. In that case we * create the NACK (representing a not yet acknowledged message) entry in * the consumer group PEL. diff --git a/src/ziplist.c b/src/ziplist.c index ea27db7f..90bb9c81 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -27,7 +27,7 @@ * traversal. * * is the number of entries. When there are more than - * 2^16-2 entires, this value is set to 2^16-1 and we need to traverse the + * 2^16-2 entries, this value is set to 2^16-1 and we need to traverse the * entire list to know how many items it holds. * * is a special entry representing the end of the ziplist. @@ -256,7 +256,7 @@ #define ZIPLIST_ENTRY_END(zl) ((zl)+intrev32ifbe(ZIPLIST_BYTES(zl))-1) /* Increment the number of items field in the ziplist header. Note that this - * macro should never overflow the unsigned 16 bit integer, since entires are + * macro should never overflow the unsigned 16 bit integer, since entries are * always pushed one at a time. When UINT16_MAX is reached we want the count * to stay there to signal that a full scan is needed to get the number of * items inside the ziplist. */