Guy Benoish 15d8a91c60 rewriteAppendOnlyFileBackground() failure fix
It is possible to do BGREWRITEAOF even if appendonly=no. This is by design.
stopAppendonly() didn't turn off aof_rewrite_scheduled (it can be turned on
again by BGREWRITEAOF even while appendonly is off anyway).
After configuring `appendonly yes` it will see that the state is AOF_OFF,
there's no RDB fork, so it will do rewriteAppendOnlyFileBackground() which
will fail since the aof_child_pid is set (was scheduled and started by cron).

Solution:
stopAppendonly() will turn off the schedule flag (regardless of who asked for it).
startAppendonly() will terminate any existing fork and start a new one (so it is the most recent).
2018-02-13 15:41:06 +01:00
..
2016-04-25 16:49:57 +03:00
2016-06-07 16:46:00 -04:00
2017-08-08 17:45:51 +08:00
2016-04-04 08:50:58 +02:00
2015-10-01 13:02:25 +02:00
2017-12-05 15:38:03 +01:00
2017-12-05 15:38:03 +01:00
2017-12-05 15:38:03 +01:00
2016-07-27 11:34:25 +02:00
2016-07-27 11:34:25 +02:00
2016-06-14 14:45:28 +02:00
2018-01-05 12:16:24 +08:00
2014-08-08 10:05:32 +02:00
2017-01-18 17:12:07 +01:00
2015-04-27 12:07:49 +02:00
2015-04-27 12:07:49 +02:00
2017-02-21 17:07:28 +01:00
2014-07-02 16:31:22 +02:00
2017-12-05 17:42:19 +08:00