mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix server: fix deadlock blmove does not conclude on error (#4561)
* fix deadlock: fix blmove does not conclude on error --------- Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
af5a21bdac
commit
5337711976
3 changed files with 6 additions and 3 deletions
|
@ -58,7 +58,7 @@ void AnalyzeTxQueue(const EngineShard* shard, const TxQueue* txq) {
|
|||
", poll_executions:", shard->stats().poll_execution_total);
|
||||
const Transaction* cont_tx = shard->GetContTx();
|
||||
if (cont_tx) {
|
||||
absl::StrAppend(&msg, " continuation_tx: ", cont_tx->DebugId(), " ",
|
||||
absl::StrAppend(&msg, " continuation_tx: ", cont_tx->DebugId(shard->shard_id()), " ",
|
||||
cont_tx->DEBUG_IsArmedInShard(shard->shard_id()) ? " armed" : "");
|
||||
}
|
||||
absl::StrAppend(&msg, "\nTxQueue head debug info ", info.head.debug_id_info);
|
||||
|
@ -558,7 +558,9 @@ string Transaction::DebugId(std::optional<ShardId> sid) const {
|
|||
absl::StrAppend(&res, " {id=", trans_id(this));
|
||||
if (sid) {
|
||||
absl::StrAppend(&res, ",mask[", *sid, "]=", int(shard_data_[SidToId(*sid)].local_mask),
|
||||
",txqpos[]=", shard_data_[SidToId(*sid)].pq_pos);
|
||||
",is_armed=", DEBUG_IsArmedInShard(*sid),
|
||||
",txqpos[]=", shard_data_[SidToId(*sid)].pq_pos,
|
||||
",fail_state_print=", DEBUG_PrintFailState(*sid));
|
||||
}
|
||||
absl::StrAppend(&res, "}");
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue