Skip to content

Commit 70503f6

Browse files
JohnSullyJohn Sully
authored andcommitted
Disable fastsync by default
1 parent 46615ac commit 70503f6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2983,7 +2983,7 @@ standardConfig configs[] = {
29832983
createIntConfig("overload-protect-percent", NULL, MODIFIABLE_CONFIG, 0, 200, g_pserver->overload_protect_threshold, 0, INTEGER_CONFIG, NULL, NULL),
29842984
createIntConfig("force-eviction-percent", NULL, MODIFIABLE_CONFIG, 0, 100, g_pserver->force_eviction_percent, 0, INTEGER_CONFIG, NULL, NULL),
29852985
createBoolConfig("enable-async-rehash", NULL, MODIFIABLE_CONFIG, g_pserver->enable_async_rehash, 1, NULL, NULL),
2986-
createBoolConfig("enable-keydb-fastsync", NULL, MODIFIABLE_CONFIG, g_pserver->fEnableFastSync, 1, NULL, NULL),
2986+
createBoolConfig("enable-keydb-fastsync", NULL, MODIFIABLE_CONFIG, g_pserver->fEnableFastSync, 0, NULL, NULL),
29872987

29882988
#ifdef USE_OPENSSL
29892989
createIntConfig("tls-port", NULL, MODIFIABLE_CONFIG, 0, 65535, g_pserver->tls_port, 0, INTEGER_CONFIG, NULL, updateTLSPort), /* TCP port. */

src/server.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ struct redisServer {
26872687

26882688
int fActiveReplica; /* Can this replica also be a master? */
26892689
int fWriteDuringActiveLoad; /* Can this active-replica write during an RDB load? */
2690-
int fEnableFastSync = true;
2690+
int fEnableFastSync = false;
26912691

26922692
// Format:
26932693
// Lower 20 bits: a counter incrementing for each command executed in the same millisecond

0 commit comments

Comments
 (0)