mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
chore: remove ToUpper calls in main_service (#3947)
* chore: remove ToUpper calls in main_service Also, test for IsPaused() first to avoid doing more checks for common-case. --------- Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
a7c9fde38e
commit
84e22aa658
7 changed files with 48 additions and 55 deletions
|
@ -155,10 +155,6 @@ void ServerState::AwaitPauseState(bool is_write) {
|
|||
});
|
||||
}
|
||||
|
||||
bool ServerState::IsPaused() const {
|
||||
return (client_pauses_[0] + client_pauses_[1]) > 0;
|
||||
}
|
||||
|
||||
void ServerState::DecommitMemory(uint8_t flags) {
|
||||
if (flags & kDataHeap) {
|
||||
mi_heap_collect(data_heap(), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue