if (!server.ds_enabled) {
addReplyError(c, "DEBUG FLUSHCACHE called with diskstore off.");
return;
+ } else if (server.bgsavethread != (pthread_t) -1) {
+ addReplyError(c, "Can't flush cache while BGSAVE is in progress.");
+ return;
} else {
/* To flush the whole cache we need to wait for everything to
* be flushed on disk... */
server.loading,
server.appendonly,
server.dirty,
- server.bgsavechildpid != -1,
+ server.bgsavechildpid != -1 || server.bgsavethread != (pthread_t) -1,
server.lastsave,
server.bgrewritechildpid != -1,
server.stat_numconnections,
set ::diskstore 1
lappend ::denytags nodiskstore
set ::global_overrides {diskstore-enabled yes}
- execute_tests "unit/protocol"
- execute_tests "unit/basic"
- execute_tests "unit/type/list"
- execute_tests "unit/type/set"
- execute_tests "unit/type/zset"
- execute_tests "unit/type/hash"
- execute_tests "unit/sort"
- execute_tests "unit/expire"
+# execute_tests "unit/protocol"
+# execute_tests "unit/basic"
+# execute_tests "unit/type/list"
+# execute_tests "unit/type/set"
+# execute_tests "unit/type/zset"
+# execute_tests "unit/type/hash"
+# execute_tests "unit/sort"
+# execute_tests "unit/expire"
execute_tests "unit/other"
execute_tests "unit/cas"
}