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

Function stopLoading

src/rdb.cpp:2645–2656  ·  view source on GitHub ↗

Loading finished */

Source from the content-addressed store, hash-verified

2643
2644/* Loading finished */
2645void stopLoading(int success) {
2646 g_pserver->loading = 0;
2647 blockingOperationEnds();
2648 rdbFileBeingLoaded = NULL;
2649
2650 /* Fire the loading modules end event. */
2651 moduleFireServerEvent(REDISMODULE_EVENT_LOADING,
2652 success?
2653 REDISMODULE_SUBEVENT_LOADING_ENDED:
2654 REDISMODULE_SUBEVENT_LOADING_FAILED,
2655 NULL);
2656}
2657
2658void startSaving(int rdbflags) {
2659 /* Fire the persistence modules end event. */

Callers 6

rdbLoadFileFunction · 0.85
readSyncBulkPayloadRdbFunction · 0.85
mainFunction · 0.85
redis_check_rdbFunction · 0.85
loadAppendOnlyFileFunction · 0.85
rdbLoadS3CoreFunction · 0.85

Calls 2

blockingOperationEndsFunction · 0.85
moduleFireServerEventFunction · 0.85

Tested by

no test coverage detected