| 2272 | } |
| 2273 | |
| 2274 | static 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 | |
| 2287 | static int updateSighandlerEnabled(int val, int prev, const char **err) { |
| 2288 | UNUSED(err); |
nothing calls this directly
no test coverage detected