MCPcopy Create free account
hub / github.com/antirez/disque / clusterLockConfig

Function clusterLockConfig

src/cluster.c:286–322  ·  view source on GitHub ↗

Lock the cluster config using flock(), and leaks the file descritor used to * acquire the lock so that the file will be locked forever. * * This works because we always update nodes.conf with a new version * in-place, reopening the file, and writing to it in place (later adjusting * the length with ftruncate()). * * On success C_OK is returned, otherwise an error is logged and * the functi

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

clusterInitFunction · 0.85

Calls 1

serverLogFunction · 0.85

Tested by

no test coverage detected