MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / rdbSaveFp

Function rdbSaveFp

src/rdb.cpp:1443–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1441}
1442
1443int rdbSaveFp(FILE *fp, const redisDbPersistentDataSnapshot **rgpdb, rdbSaveInfo *rsi)
1444{
1445 int error = 0;
1446 rio rdb;
1447
1448 rioInitWithFile(&rdb,fp);
1449
1450 if (g_pserver->rdb_save_incremental_fsync)
1451 rioSetAutoSync(&rdb,REDIS_AUTOSYNC_BYTES);
1452
1453 if (rdbSaveRio(&rdb,rgpdb,&error,RDBFLAGS_NONE,rsi) == C_ERR) {
1454 errno = error;
1455 return C_ERR;
1456 }
1457 return C_OK;
1458}
1459
1460int rdbSave(const redisDbPersistentDataSnapshot **rgpdb, rdbSaveInfo *rsi)
1461{

Callers 1

rdbSaveS3Function · 0.85

Calls 3

rioInitWithFileFunction · 0.85
rioSetAutoSyncFunction · 0.85
rdbSaveRioFunction · 0.85

Tested by

no test coverage detected