summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Yuan <wangyuan21@baidu.com>2021-03-25 21:09:12 +0800
committerGitHub <noreply@github.com>2021-03-25 15:09:12 +0200
commit1976acfe3e40ca2a1b42ffe7f94cfc7487aa2302 (patch)
treea4e4ed25fb8f585796bebdf0c0c3c1e1dfb06709
parent497351ad07365109a57c831c5e99b15dfbefdeb3 (diff)
downloadredis-1976acfe3e40ca2a1b42ffe7f94cfc7487aa2302.tar.gz
Remove deprecated comments about saving expire time (#8692)
-rw-r--r--src/rdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rdb.c b/src/rdb.c
index bd5b8b21e..6f2f5165e 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -1073,8 +1073,7 @@ size_t rdbSavedObjectLen(robj *o, robj *key) {
/* Save a key-value pair, with expire time, type, key, value.
* On error -1 is returned.
- * On success if the key was actually saved 1 is returned, otherwise 0
- * is returned (the key was already expired). */
+ * On success if the key was actually saved 1 is returned. */
int rdbSaveKeyValuePair(rio *rdb, robj *key, robj *val, long long expiretime) {
int savelru = server.maxmemory_policy & MAXMEMORY_FLAG_LRU;
int savelfu = server.maxmemory_policy & MAXMEMORY_FLAG_LFU;