-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Fix naming in InternalKey #2868
Conversation
@axxufb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
One suggestion is to change the comment on line 412 in db/version_set.cc from "Find the earliest possible internal key for smallest_user_key" to "Find the leftmost possible internal key for smallest_user_key" as the earliest internal key not be the min possible unless it is the only one for that user key. |
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.
LGTM! Thanks for contributing to rocksdb.
db/dbformat.h
Outdated
AppendInternalKey( | ||
&rep_, ParsedInternalKey(_user_key, 0, static_cast<ValueType>(0))); | ||
AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, | ||
kValueTypeForSeek)); |
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.
maybe run make format
to fix the whitespace
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.
"make format" replies on internal library, so it can't be used outside the company.
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.
She is a bootcamper :)
db/version_set.cc
Outdated
@@ -411,7 +411,7 @@ bool SomeFileOverlapsRange( | |||
if (smallest_user_key != nullptr) { | |||
// Find the earliest possible internal key for smallest_user_key |
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.
leftmost sounds good to me.
7b23faa
to
7f26a80
Compare
@axxufb updated the pull request - view changes - changes since last import |
@axxufb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
1 similar comment
@axxufb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Task: T21624617
Test Plan: