Fix lastbgsave_status, when new child signal handler get intended kill

And add a test for that.
This commit is contained in:
Oran Agra
2019-09-26 15:16:34 +03:00
parent 78bbb9b58d
commit 83e87bac76
2 changed files with 22 additions and 1 deletions

View File

@@ -115,3 +115,17 @@ start_server_and_kill_it [list "dir" $server_path] {
}
}
}
start_server {} {
test {Test FLUSHALL aborts bgsave} {
r config set rdb-key-save-delay 1000
r debug populate 1000
r bgsave
assert_equal [s rdb_bgsave_in_progress] 1
r flushall
after 200
assert_equal [s rdb_bgsave_in_progress] 0
# make sure the server is still writable
r set x xx
}
}