MCPcopy Create free account
hub / github.com/F-Stack/f-stack / clusterSaveConfigOrDie

Function clusterSaveConfigOrDie

app/redis-6.2.6/src/cluster.c:379–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379void clusterSaveConfigOrDie(int do_fsync) {
380 if (clusterSaveConfig(do_fsync) == -1) {
381 serverLog(LL_WARNING,"Fatal: can't update cluster config file.");
382 exit(1);
383 }
384}
385
386/* Lock the cluster config using flock(), and leaks the file descriptor used to
387 * acquire the lock so that the file will be locked forever.

Callers 5

clusterInitFunction · 0.85
clusterBeforeSleepFunction · 0.85

Calls 1

clusterSaveConfigFunction · 0.85

Tested by

no test coverage detected