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

Function rewriteConfigOctalOption

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

Rewrite an octal option. */

Source from the content-addressed store, hash-verified

1352
1353/* Rewrite an octal option. */
1354void rewriteConfigOctalOption(struct rewriteConfigState *state, char *option, int value, int defvalue) {
1355 int force = value != defvalue;
1356 sds line = sdscatprintf(sdsempty(),"%s %o",option,value);
1357
1358 rewriteConfigRewriteLine(state,option,line,force);
1359}
1360
1361/* Rewrite an enumeration option. It takes as usually state and option name,
1362 * and in addition the enumeration array and the default value for the

Callers 1

rewriteConfigFunction · 0.85

Calls 3

sdscatprintfFunction · 0.85
sdsemptyFunction · 0.85
rewriteConfigRewriteLineFunction · 0.85

Tested by

no test coverage detected