mirror of
https://github.com/fluencelabs/redis
synced 2025-04-04 08:41:04 +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;
|
FILE *fp;
|
||||||
rio rdb;
|
rio rdb;
|
||||||
|
|
||||||
fp = fopen(filename,"r");
|
if ((fp = fopen(filename,"r")) == NULL) return REDIS_ERR;
|
||||||
if (!fp) {
|
|
||||||
return REDIS_ERR;
|
|
||||||
}
|
|
||||||
rioInitWithFile(&rdb,fp);
|
rioInitWithFile(&rdb,fp);
|
||||||
if (server.rdb_checksum)
|
if (server.rdb_checksum)
|
||||||
rdb.update_cksum = rioGenericUpdateChecksum;
|
rdb.update_cksum = rioGenericUpdateChecksum;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user