Skip to content

Commit 5972c8a

Browse files
multiple keys
1 parent a9d13dd commit 5972c8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,11 @@ pub fn json_set<M: Manager>(manager: M, ctx: &Context, args: Vec<RedisString>) -
638638
for ui in update_info {
639639
res = match ui {
640640
UpdateInfo::SUI(sui) => {
641-
redis_key.set_value(sui.path, val.clone())?
641+
if sui.path.len() < 128 {
642+
redis_key.set_value(sui.path, val.clone())?
643+
} else {
644+
return Err(RedisError::Str("recursion limit exceeded"));
645+
}
642646
}
643647
UpdateInfo::AUI(aui) => {
644648
redis_key.dict_add(aui.path, &aui.key, val.clone())?

0 commit comments

Comments
 (0)