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

Function redisBuildIdString

app/redis-6.2.6/src/release.c:58–66  ·  view source on GitHub ↗

Return a cached value of the build string in order to avoid recomputing * and converting it in hex every time: this string is shown in the INFO * output that should be fast. */

Source from the content-addressed store, hash-verified

56 * and converting it in hex every time: this string is shown in the INFO
57 * output that should be fast. */
58char *redisBuildIdString(void) {
59 static char buf[32];
60 static int cached = 0;
61 if (!cached) {
62 snprintf(buf,sizeof(buf),"%llx",(unsigned long long) redisBuildId());
63 cached = 1;
64 }
65 return buf;
66}

Callers 1

genRedisInfoStringFunction · 0.85

Calls 2

snprintfFunction · 0.85
redisBuildIdFunction · 0.85

Tested by

no test coverage detected