-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add protocol compliant PostgresKvStore impl. #35
Conversation
G8XSU
commented
Sep 30, 2024
•
edited
Loading
edited
- Add protocol compliant PostgresKvStore impl.
a0196f6
to
2e82585
Compare
} else if request.key == GLOBAL_VERSION_KEY { | ||
KeyValue { key: GLOBAL_VERSION_KEY.to_string(), value: Bytes::new(), version: 0 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we read this if it is written in put
? The version in the database might not be 0, IIUC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is present, we first try to read it(this is the first if condition). If it is not present, then we default to 0 for global version.(this is handled by second if condition i.e. request.key == GLOBLAL_VERSION_KEY
)
Added fixup commit with all fixups. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two minor comments, otherwise LGTM after squash.
Squashed fixups! |