mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
takeover: Cancel blocking commands (#1514)
* fix: Cancel blocking commands when performing a takeover * Add some comments * Make CancelBlocking a method of ConnectionContext * add a small todo
This commit is contained in:
parent
646f5304a5
commit
0f69d32b11
11 changed files with 47 additions and 14 deletions
|
@ -1389,7 +1389,7 @@ void Transaction::FinishLogJournalOnShard(EngineShard* shard, uint32_t shard_cnt
|
|||
journal->RecordEntry(txid_, journal::Op::EXEC, db_index_, shard_cnt, {}, false);
|
||||
}
|
||||
|
||||
void Transaction::BreakOnShutdown() {
|
||||
void Transaction::CancelBlocking() {
|
||||
if (coordinator_state_ & COORD_BLOCKED) {
|
||||
coordinator_state_ |= COORD_CANCELLED;
|
||||
blocking_ec_.notify();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue