From 69e7958918a7e7644654cc00d2846251b3f7b4d5 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 7 Apr 2012 13:22:04 +0200 Subject: [PATCH] Added new test to check that "CONFIG appendonly no" actually kills the background AOF operation in progress if any. --- tests/unit/aofrw.tcl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/unit/aofrw.tcl b/tests/unit/aofrw.tcl index 44192ac1e..e341d77b2 100644 --- a/tests/unit/aofrw.tcl +++ b/tests/unit/aofrw.tcl @@ -1,4 +1,15 @@ start_server {tags {"aofrw"}} { + + test {Turning off AOF kills the background writing child if any} { + r config set appendonly yes + waitForBgrewriteaof r + r multi + r bgrewriteaof + r config set appendonly no + r exec + set result [exec cat [srv 0 stdout] | tail -n1] + } {*Killing*AOF*child*} + foreach d {string int} { foreach e {ziplist linkedlist} { test "AOF rewrite of list with $e encoding, $d data" {