]> git.saurik.com Git - redis.git/commitdiff
Added new test to check that "CONFIG appendonly no" actually kills the background...
authorantirez <antirez@gmail.com>
Sat, 7 Apr 2012 11:22:04 +0000 (13:22 +0200)
committerantirez <antirez@gmail.com>
Sun, 8 Apr 2012 08:43:33 +0000 (10:43 +0200)
tests/unit/aofrw.tcl

index 44192ac1eb42d6472a7d3c6bacbd39fa86529c7e..e341d77b215159e1e47867b140387bb809cce2c2 100644 (file)
@@ -1,4 +1,15 @@
 start_server {tags {"aofrw"}} {
 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" {
     foreach d {string int} {
         foreach e {ziplist linkedlist} {
             test "AOF rewrite of list with $e encoding, $d data" {