-
Notifications
You must be signed in to change notification settings - Fork 171
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
Stop generating object keys from primary key value hashes #4708
Conversation
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.
Don't we need tests validating file format upgrades from v11 and v21 ?
@@ -346,7 +347,7 @@ class Table { | |||
size_t get_index_in_group() const noexcept; | |||
TableKey get_key() const noexcept; | |||
|
|||
uint32_t allocate_sequence_number(); | |||
uint64_t allocate_sequence_number(); |
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.
Nice
test/object-store/results.cpp
Outdated
@@ -3248,12 +3248,15 @@ TEMPLATE_TEST_CASE("results: get<Obj>() intermixed with writes", "", ResultsFrom | |||
|
|||
r->begin_transaction(); | |||
|
|||
/* | |||
* We no longer insert based on pk. Objects will always be inserted at the end. |
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 just remove this code completely?
test/test_global_key.cpp
Outdated
@@ -76,6 +76,7 @@ TEST(GlobalKey_Compare) | |||
CHECK_LESS(GlobalKey(0, 0), GlobalKey(1, 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 just remove this code?
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.
Looking better... but...see comments
test/test_upgrade_database.cpp
Outdated
|
||
SHARED_GROUP_TEST_PATH(temp_copy); | ||
|
||
// Make a copy of the version 9 database so that we keep the |
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.
version 20 ?
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.
Epic!
What, How & Why?
Fixes #4522
☑️ ToDos