mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
fix(server): client pause fix on pipeline squash (#2180)
* fix(server): client pause fix on pipeline squash allow squashing commands on pause move await on client pause inside InvokeCommand - this way all flows of command invoke will read pause state Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
b61d07d2c1
commit
c95f4961be
4 changed files with 11 additions and 20 deletions
|
@ -119,10 +119,6 @@ void ServerState::SetPauseState(ClientPause state, bool start) {
|
|||
}
|
||||
}
|
||||
|
||||
bool ServerState::IsPaused() const {
|
||||
return client_pauses_[0] || client_pauses_[1];
|
||||
}
|
||||
|
||||
void ServerState::AwaitPauseState(bool is_write) {
|
||||
client_pause_ec_.await([is_write, this]() {
|
||||
if (client_pauses_[int(ClientPause::ALL)]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue