mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
rdbLoad(): rework code to save vertical space.
This commit is contained in:
parent
9925c7c670
commit
79a6844e44
@ -1067,10 +1067,8 @@ int rdbLoad(char *filename) {
|
||||
FILE *fp;
|
||||
rio rdb;
|
||||
|
||||
fp = fopen(filename,"r");
|
||||
if (!fp) {
|
||||
return REDIS_ERR;
|
||||
}
|
||||
if ((fp = fopen(filename,"r")) == NULL) return REDIS_ERR;
|
||||
|
||||
rioInitWithFile(&rdb,fp);
|
||||
if (server.rdb_checksum)
|
||||
rdb.update_cksum = rioGenericUpdateChecksum;
|
||||
|
Loading…
x
Reference in New Issue
Block a user