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

Function startSaving

src/rdb.cpp:2658–2668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2656}
2657
2658void startSaving(int rdbflags) {
2659 /* Fire the persistence modules end event. */
2660 int subevent;
2661 if (rdbflags & RDBFLAGS_AOF_PREAMBLE)
2662 subevent = REDISMODULE_SUBEVENT_PERSISTENCE_AOF_START;
2663 else if (getpid()!=cserver.pid)
2664 subevent = REDISMODULE_SUBEVENT_PERSISTENCE_RDB_START;
2665 else
2666 subevent = REDISMODULE_SUBEVENT_PERSISTENCE_SYNC_RDB_START;
2667 moduleFireServerEvent(REDISMODULE_EVENT_PERSISTENCE,subevent,NULL);
2668}
2669
2670void stopSaving(int success) {
2671 /* Fire the persistence modules end event. */

Callers 3

rdbSaveRioWithEOFMarkFunction · 0.85
rdbSaveFileFunction · 0.85
rewriteAppendOnlyFileFunction · 0.85

Calls 1

moduleFireServerEventFunction · 0.85

Tested by

no test coverage detected