feat(server): Add missing fields to INFO PERSISTENCE command (#1408) (#1438)

* Add loading field
* Add rdb_changes_since_last_save field
This commit is contained in:
Kostas Kyrimis 2023-06-21 23:35:36 +03:00 committed by GitHub
parent 5e479ed967
commit 99f3284910
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 106 additions and 4 deletions

View file

@ -85,6 +85,8 @@ class Service : public facade::ServiceInterface {
// Upon switch, updates cached global state in threadlocal ServerState struct.
GlobalState SwitchState(GlobalState from, GlobalState to);
GlobalState GetGlobalState() const;
void ConfigureHttpHandlers(util::HttpListenerBase* base) final;
void OnClose(facade::ConnectionContext* cntx) final;
std::string GetContextInfo(facade::ConnectionContext* cntx) final;