Add RedisModule_GetKeyNameFromIO().

This commit is contained in:
Yossi Gottlieb
2016-11-30 21:47:02 +02:00
parent 74d6af8f80
commit a88264d934
8 changed files with 30 additions and 17 deletions

View File

@ -285,7 +285,7 @@ int redis_check_rdb(char *rdbfilename, FILE *fp) {
rdbstate.keys++;
/* Read value */
rdbstate.doing = RDB_CHECK_DOING_READ_OBJECT_VALUE;
if ((val = rdbLoadObject(type,&rdb)) == NULL) goto eoferr;
if ((val = rdbLoadObject(type,&rdb,key)) == NULL) goto eoferr;
/* Check if the key already expired. */
if (expiretime != -1 && expiretime < now)
rdbstate.already_expired++;