This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new e55ac720 feat(config): change redis-cursor-compatible default value to
yes (#2429)
e55ac720 is described below
commit e55ac720effb6ac123e71ad389f57a39b8a5f2e7
Author: 纪华裕 <[email protected]>
AuthorDate: Tue Jul 16 18:48:21 2024 +0800
feat(config): change redis-cursor-compatible default value to yes (#2429)
---
kvrocks.conf | 2 +-
src/config/config.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kvrocks.conf b/kvrocks.conf
index 66715028..57b347fd 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 4ff8901f..98770ef6 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)},