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

Function announceSentinelAddr

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

Source from the content-addressed store, hash-verified

651}
652
653const char *announceSentinelAddr(const sentinelAddr *a) {
654 return sentinel.announce_hostnames ? a->hostname : a->ip;
655}
656
657/* Return an allocated sds with hostname/address:port. IPv6
658 * addresses are bracketed the same way anetFormatAddr() does.

Callers 12

sentinelEventFunction · 0.85
sentinelSendHelloFunction · 0.85
sentinelCommandFunction · 0.85
sentinelInfoCommandFunction · 0.85
sentinelSendSlaveOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected