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

Function numericConfigRewrite

app/redis-6.2.6/src/config.c:2064–2074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2062}
2063
2064static void numericConfigRewrite(typeData data, const char *name, struct rewriteConfigState *state) {
2065 long long value = 0;
2066
2067 GET_NUMERIC_TYPE(value)
2068
2069 if (data.numeric.is_memory) {
2070 rewriteConfigBytesOption(state, name, value, data.numeric.default_value);
2071 } else {
2072 rewriteConfigNumericalOption(state, name, value, data.numeric.default_value);
2073 }
2074}
2075
2076#define INTEGER_CONFIG 0
2077#define MEMORY_CONFIG 1

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected