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

Function loadingProgress

src/rdb.cpp:2638–2642  ·  view source on GitHub ↗

Refresh the loading progress info */

Source from the content-addressed store, hash-verified

2636
2637/* Refresh the loading progress info */
2638void loadingProgress(off_t pos) {
2639 g_pserver->loading_loaded_bytes = pos;
2640 if (g_pserver->stat_peak_memory < zmalloc_used_memory())
2641 g_pserver->stat_peak_memory = zmalloc_used_memory();
2642}
2643
2644/* Loading finished */
2645void stopLoading(int success) {

Callers 2

rdbLoadProgressCallbackFunction · 0.85
loadAppendOnlyFileFunction · 0.85

Calls 1

zmalloc_used_memoryFunction · 0.85

Tested by

no test coverage detected