Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
Morpheus
-
None
-
0
Description
Some of the bucket configuration keys support a fixed set of values.
For example: compression_mode = off | passive | active
We already have that information in configuration.json, as these keys will have an "enum" validator, which guarantees that only those values will be accepted.
We can utilise this information to generate C++ enums for those keys, as well as parsing/stringify logic.
Attachments
Gerrit Reviews
For Gerrit Dashboard: MB-62665 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
212476,1 | MB-62665: Refactor the code in EPEngine to use the config enums | master | kv_engine | Status: NEW | -1 | -1 |
212670,1 | MB-62665: Use cb::config::Backend for the backend config string | master | kv_engine | Status: NEW | -1 | -1 |