diff options
author | shenlongxing <shenlongxing2012@gmail.com> | 2018-06-21 22:08:09 +0800 |
---|---|---|
committer | shenlongxing <shenlongxing2012@gmail.com> | 2018-06-21 22:08:09 +0800 |
commit | ec55df117f0554aaf0d36e2fbb875aea93105b3d (patch) | |
tree | 423c5daa9ea35df733359cbf3704f17dda9f9ac1 | |
parent | 1527bcada365231e7d3852bcefc0a8eb0407f5ae (diff) | |
download | redis-ec55df117f0554aaf0d36e2fbb875aea93105b3d.tar.gz |
fix typo
-rw-r--r-- | src/db.c | 2 | ||||
-rw-r--r-- | src/expire.c | 2 | ||||
-rw-r--r-- | src/module.c | 2 | ||||
-rw-r--r-- | tests/unit/expire.tcl | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -90,7 +90,7 @@ robj *lookupKey(redisDb *db, robj *key, int flags) { * LOOKUP_NONE (or zero): no special flags are passed. * LOOKUP_NOTOUCH: don't alter the last access time of the key. * - * Note: this function also returns NULL is the key is logically expired + * Note: this function also returns NULL if the key is logically expired * but still existing, in case this is a slave, since this API is called only * for read operations. Even if the key expiry is master-driven, we can * correctly report a key is expired on slaves even if the master is lagging diff --git a/src/expire.c b/src/expire.c index ce7882e4c..0b92ee3fe 100644 --- a/src/expire.c +++ b/src/expire.c @@ -112,7 +112,7 @@ void activeExpireCycle(int type) { if (type == ACTIVE_EXPIRE_CYCLE_FAST) { /* Don't start a fast cycle if the previous cycle did not exit - * for time limt. Also don't repeat a fast cycle for the same period + * for time limit. Also don't repeat a fast cycle for the same period * as the fast cycle total duration itself. */ if (!timelimit_exit) return; if (start < last_fast_cycle + ACTIVE_EXPIRE_CYCLE_FAST_DURATION*2) return; diff --git a/src/module.c b/src/module.c index b5ef0da02..5f6ddb9c6 100644 --- a/src/module.c +++ b/src/module.c @@ -3399,7 +3399,7 @@ void RM_LogRaw(RedisModule *module, const char *levelstr, const char *fmt, va_li * * If the specified log level is invalid, verbose is used by default. * There is a fixed limit to the length of the log line this function is able - * to emit, this limti is not specified but is guaranteed to be more than + * to emit, this limit is not specified but is guaranteed to be more than * a few lines of text. */ void RM_Log(RedisModuleCtx *ctx, const char *levelstr, const char *fmt, ...) { diff --git a/tests/unit/expire.tcl b/tests/unit/expire.tcl index eddc7c303..de24eabed 100644 --- a/tests/unit/expire.tcl +++ b/tests/unit/expire.tcl @@ -121,7 +121,7 @@ start_server {tags {"expire"}} { list $a $b } {somevalue {}} - test {TTL returns tiem to live in seconds} { + test {TTL returns time to live in seconds} { r del x r setex x 10 somevalue set ttl [r ttl x] |