mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
redis_check_rdb(): the rio structure must be global.
The rio structure is referenced in the global 'riostate' structure in order for the logging functions to be always able to access the state of the "pseudo-loading" of the RDB, needed for the check. Courtesy of Valgrind.
This commit is contained in:
parent
eee878cbc5
commit
51c1d40d08
@ -180,7 +180,7 @@ int redis_check_rdb(char *rdbfilename) {
|
||||
char buf[1024];
|
||||
long long expiretime, now = mstime();
|
||||
FILE *fp;
|
||||
rio rdb;
|
||||
static rio rdb; /* Pointed by global struct riostate. */
|
||||
|
||||
if ((fp = fopen(rdbfilename,"r")) == NULL) return 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user