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:
Roman Gershman 2024-10-18 17:04:47 +03:00 committed by GitHub
parent a7c9fde38e
commit 84e22aa658
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 48 additions and 55 deletions

View file

@ -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);