diff --git a/kvrocks.conf b/kvrocks.conf index 66715028493..57b347fd00e 100644 --- a/kvrocks.conf +++ b/kvrocks.conf @@ -308,7 +308,7 @@ max-bitmap-to-string-mb 16 # Whether to enable SCAN-like cursor compatible with Redis. # If enabled, the cursor will be unsigned 64-bit integers. # If disabled, the cursor will be a string. -# Default: no +# Default: yes redis-cursor-compatible yes # Whether to enable the RESP3 protocol. diff --git a/src/config/config.cc b/src/config/config.cc index 4ff8901f9c8..98770ef6dd0 100644 --- a/src/config/config.cc +++ b/src/config/config.cc @@ -184,7 +184,7 @@ Config::Config() { {"unixsocketperm", true, new OctalField(&unixsocketperm, 0777, 1, INT_MAX)}, {"log-retention-days", false, new IntField(&log_retention_days, -1, -1, INT_MAX)}, {"persist-cluster-nodes-enabled", false, new YesNoField(&persist_cluster_nodes_enabled, true)}, - {"redis-cursor-compatible", false, new YesNoField(&redis_cursor_compatible, false)}, + {"redis-cursor-compatible", false, new YesNoField(&redis_cursor_compatible, true)}, {"resp3-enabled", false, new YesNoField(&resp3_enabled, false)}, {"repl-namespace-enabled", false, new YesNoField(&repl_namespace_enabled, false)}, {"json-max-nesting-depth", false, new IntField(&json_max_nesting_depth, 1024, 0, INT_MAX)},