Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
* Core: Add support for sending multi-slot JSON.MSET and JSON.MGET commands ([#2587]https://github.com/valkey-io/valkey-glide/pull/2587)
* Node: Add `JSON.DEBUG` command ([#2572](https://github.com/valkey-io/valkey-glide/pull/2572))
* Node: Add `JSON.NUMINCRBY` and `JSON.NUMMULTBY` command ([#2555](https://github.com/valkey-io/valkey-glide/pull/2555))
* Core: Fix list of readonly commands ([#2634](https://github.com/valkey-io/valkey-glide/pull/2634), [#2649](https://github.com/valkey-io/valkey-glide/pull/2649))

#### Breaking Changes

Expand Down
19 changes: 18 additions & 1 deletion glide-core/redis-rs/redis/src/cluster_routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,23 @@ pub fn is_readonly(routable: &impl Routable) -> bool {
pub fn is_readonly_cmd(cmd: &[u8]) -> bool {
matches!(
cmd,
b"BITCOUNT"
b"ACL CAT"
| b"ACL DELUSER"
| b"ACL DRYRUN"
| b"ACL GENPASS"
| b"ACL GETUSER"
| b"ACL HELP"
| b"ACL LIST"
| b"ACL LOAD"
| b"ACL LOG"
| b"ACL SAVE"
| b"ACL SETUSER"
| b"ACL USERS"
| b"ACL WHOAMI"
| b"AUTH"
| b"BGREWRITEAOF"
| b"BGSAVE"
| b"BITCOUNT"
| b"BITFIELD_RO"
| b"BITPOS"
| b"CLIENT ID"
Expand Down Expand Up @@ -920,6 +936,7 @@ pub fn is_readonly_cmd(cmd: &[u8]) -> bool {
| b"CONFIG SET"
| b"DBSIZE"
| b"DUMP"
| b"ECHO"
| b"EVAL_RO"
| b"EVALSHA_RO"
| b"EXISTS"
Expand Down