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

Function updateAppendonly

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

Source from the content-addressed store, hash-verified

2272}
2273
2274static int updateAppendonly(int val, int prev, const char **err) {
2275 UNUSED(prev);
2276 if (val == 0 && server.aof_state != AOF_OFF) {
2277 stopAppendOnly();
2278 } else if (val && server.aof_state == AOF_OFF) {
2279 if (startAppendOnly() == C_ERR) {
2280 *err = "Unable to turn on AOF. Check server logs.";
2281 return 0;
2282 }
2283 }
2284 return 1;
2285}
2286
2287static int updateSighandlerEnabled(int val, int prev, const char **err) {
2288 UNUSED(err);

Callers

nothing calls this directly

Calls 2

stopAppendOnlyFunction · 0.85
startAppendOnlyFunction · 0.85

Tested by

no test coverage detected