mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
fix(server): Fix shardlocal eval with round-robin prefix (#2024)
This commit is contained in:
parent
1cb8be26ea
commit
9e2a9fd5e5
1 changed files with 2 additions and 2 deletions
|
@ -1602,8 +1602,8 @@ void Service::EvalInternal(CmdArgList args, const EvalArgs& eval_args, Interpret
|
|||
auto& sinfo = cntx->conn_state.script_info;
|
||||
sinfo = make_unique<ConnectionState::ScriptInfo>();
|
||||
for (size_t i = 0; i < eval_args.keys.size(); ++i) {
|
||||
string_view key = KeyLockArgs::GetLockKey(ArgS(eval_args.keys, i));
|
||||
sinfo->keys.insert(key);
|
||||
string_view key = ArgS(eval_args.keys, i);
|
||||
sinfo->keys.insert(KeyLockArgs::GetLockKey(key));
|
||||
|
||||
ShardId cur_sid = Shard(key, shard_count());
|
||||
if (i == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue