chore: allow config set notify_keyspace_events (#3790)

We do not allow notify_keyspace_events to be set at runtime via config set command.

* allow notify_keyspace_events in config set command
* add tests

---------

Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
Kostas Kyrimis 2024-09-30 09:54:02 +03:00 committed by GitHub
parent 5d64e1471a
commit ed11c8d3a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 70 additions and 8 deletions

View file

@ -511,6 +511,10 @@ class DbSlice {
return pt->Traverse(cursor, std::forward<Cb>(cb));
}
// Does not check for non supported events. Callers must parse the string and reject it
// if it's not empty and not EX.
void SetNotifyKeyspaceEvents(std::string_view notify_keyspace_events);
private:
void PreUpdate(DbIndex db_ind, Iterator it, std::string_view key);
void PostUpdate(DbIndex db_ind, Iterator it, std::string_view key, size_t orig_size);