MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / FSameUuidNoNil

Function FSameUuidNoNil

src/replication.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static bool FSameUuidNoNil(const unsigned char *a, const unsigned char *b)
93{
94 unsigned char zeroCheck = 0;
95 for (int i = 0; i < UUID_BINARY_LEN; ++i)
96 {
97 if (a[i] != b[i])
98 return false;
99 zeroCheck |= a[i];
100 }
101 return (zeroCheck != 0); // if the UUID is nil then it is never equal
102}
103
104static bool FSameHost(client *clientA, client *clientB)
105{

Callers 4

FSameHostFunction · 0.85
FMasterHostFunction · 0.85
processReplconfUuidFunction · 0.85
replicaReplayCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected