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

Function iAmMaster

app/redis-6.2.6/src/server.c:6128–6131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6126}
6127
6128int iAmMaster(void) {
6129 return ((!server.cluster_enabled && server.masterhost == NULL) ||
6130 (server.cluster_enabled && nodeIsMaster(server.cluster->myself)));
6131}
6132
6133#ifdef REDIS_TEST
6134typedef int redisTestProc(int argc, char **argv, int accurate);

Callers 2

databasesCronFunction · 0.85
rdbLoadRioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected