mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 10:41:22 +00:00
Fixed issues with expire introduced with latest millisecond resolution feature. Many time_t were not converted to long long, and one time() call was not replaced with mstime().
This commit is contained in:
@ -431,7 +431,7 @@ int rewriteAppendOnlyFile(char *filename) {
|
||||
FILE *fp;
|
||||
char tmpfile[256];
|
||||
int j;
|
||||
time_t now = time(NULL);
|
||||
long long now = mstime();
|
||||
|
||||
/* Note that we have to use a different temp name here compared to the
|
||||
* one used by rewriteAppendOnlyFileBackground() function. */
|
||||
@ -462,7 +462,7 @@ int rewriteAppendOnlyFile(char *filename) {
|
||||
while((de = dictNext(di)) != NULL) {
|
||||
sds keystr;
|
||||
robj key, *o;
|
||||
time_t expiretime;
|
||||
long long expiretime;
|
||||
|
||||
keystr = dictGetKey(de);
|
||||
o = dictGetVal(de);
|
||||
|
Reference in New Issue
Block a user