mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix(server): Don't recompute shard for squashed stub tx (#2017)
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
6a75c6ddc5
commit
cb9a45f2a9
4 changed files with 20 additions and 9 deletions
|
@ -1633,10 +1633,10 @@ void Service::EvalInternal(CmdArgList args, const EvalArgs& eval_args, Interpret
|
|||
});
|
||||
|
||||
++ServerState::tlocal()->stats.eval_shardlocal_coordination_cnt;
|
||||
boost::intrusive_ptr<Transaction> stub_tx = new Transaction{tx};
|
||||
boost::intrusive_ptr<Transaction> stub_tx = new Transaction{tx, *sid};
|
||||
cntx->transaction = stub_tx.get();
|
||||
|
||||
tx->PrepareMultiForScheduleSingleHop(*sid, 0, args);
|
||||
tx->PrepareMultiForScheduleSingleHop(*sid, tx->GetDbIndex(), args);
|
||||
tx->ScheduleSingleHop([&](Transaction*, EngineShard*) {
|
||||
result = interpreter->RunFunction(eval_args.sha, &error);
|
||||
return OpStatus::OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue