summaryrefslogtreecommitdiff
path: root/src/rdb.h
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2018-06-19 16:54:22 +0300
committerOran Agra <oran@redislabs.com>2018-06-19 16:54:22 +0300
commitf31b0405f0023d8916efac3aa9b0c16d4db69fc4 (patch)
tree72cab0c7b35e6332b2ead9b9c131441b2baefc43 /src/rdb.h
parent44571088d8407749ca1c49cde09089664e7928ff (diff)
downloadredis-f31b0405f0023d8916efac3aa9b0c16d4db69fc4.tar.gz
fix redis-rdb-check to provide proper arguments to rdbLoadMillisecondTime
due to incorrect forward declaration, it didn't provide all arguments. this lead to random value being read from the stack and return of incorrect time, which in this case doesn't matter since no one uses it.
Diffstat (limited to 'src/rdb.h')
-rw-r--r--src/rdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rdb.h b/src/rdb.h
index 3c46a2737..7b9486169 100644
--- a/src/rdb.h
+++ b/src/rdb.h
@@ -129,6 +129,8 @@ int rdbLoadType(rio *rdb);
int rdbSaveTime(rio *rdb, time_t t);
time_t rdbLoadTime(rio *rdb);
int rdbSaveLen(rio *rdb, uint64_t len);
+int rdbSaveMillisecondTime(rio *rdb, long long t);
+long long rdbLoadMillisecondTime(rio *rdb, int rdbver);
uint64_t rdbLoadLen(rio *rdb, int *isencoded);
int rdbLoadLenByRef(rio *rdb, int *isencoded, uint64_t *lenptr);
int rdbSaveObjectType(rio *rdb, robj *o);