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

Function clusterSaveConfigOrDie

src/cluster.cpp:396–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396void clusterSaveConfigOrDie(int do_fsync) {
397 if (clusterSaveConfig(do_fsync) == -1) {
398 serverLog(LL_WARNING,"Fatal: can't update cluster config file.");
399 exit(1);
400 }
401}
402
403/* Lock the cluster config using flock(), and leaks the file descriptor used to
404 * acquire the lock so that the file will be locked forever.

Callers 5

clusterInitFunction · 0.85
clusterBeforeSleepFunction · 0.85

Calls 2

clusterSaveConfigFunction · 0.85
serverLogFunction · 0.85

Tested by

no test coverage detected