From 1976acfe3e40ca2a1b42ffe7f94cfc7487aa2302 Mon Sep 17 00:00:00 2001 From: Wang Yuan Date: Thu, 25 Mar 2021 21:09:12 +0800 Subject: [PATCH] Remove deprecated comments about saving expire time (#8692) --- src/rdb.c | 3 +-- 1 file changed, 1 insertion(+), 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;