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

Function searchPreMonitorCfgName

app/redis-6.2.6/src/sentinel.c:1795–1800  ·  view source on GitHub ↗

Search config name in pre monitor config name array, return 1 if found, * 0 if not found. */

Source from the content-addressed store, hash-verified

1793/* Search config name in pre monitor config name array, return 1 if found,
1794 * 0 if not found. */
1795int searchPreMonitorCfgName(const char *name) {
1796 for (unsigned int i = 0; i < sizeof(preMonitorCfgName)/sizeof(preMonitorCfgName[0]); i++) {
1797 if (!strcasecmp(preMonitorCfgName[i],name)) return 1;
1798 }
1799 return 0;
1800}
1801
1802/* free method for sentinelLoadQueueEntry when release the list */
1803void freeSentinelLoadQueueEntry(void *item) {

Callers 1

queueSentinelConfigFunction · 0.85

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected