PragmaTwice commented on code in PR #2402:
URL: https://github.com/apache/kvrocks/pull/2402#discussion_r1679196875
##########
src/storage/redis_metadata.h:
##########
@@ -202,7 +203,12 @@ class Metadata {
class HashMetadata : public Metadata {
public:
+ bool is_ttl_field_encoded;
Review Comment:
You can add a new enum type like:
```
enum class SubkeyEncoding {
RAW = 0;
WITH_TTL = 1;
};
```
Add then add a `SubkeyEncoding` field into `HashMetadata` instead of a
`bool`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]