-
Notifications
You must be signed in to change notification settings - Fork 0
fix(heap_table): TupleId sentinel bug and 28 unit tests #29
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ CMakeFiles/ | |
| cmake_install.cmake | ||
| Makefile | ||
| *.cmake | ||
| _deps/ | ||
|
|
||
| # Compiled binaries | ||
| sqlEngine | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -543,6 +543,12 @@ bool HeapTable::get_meta(const TupleId& tuple_id, TupleMeta& out_meta) const { | |||||||||||||||
| std::memcpy(&out_meta.xmin, data + 2, 8); | ||||||||||||||||
| std::memcpy(&out_meta.xmax, data + 10, 8); | ||||||||||||||||
|
|
||||||||||||||||
| /* Skip tuples that have been logically deleted */ | ||||||||||||||||
| if (out_meta.xmax != 0) { | ||||||||||||||||
| bpm_.unpin_page_by_id(file_id_, tuple_id.page_num, false); | ||||||||||||||||
| return false; | ||||||||||||||||
|
Comment on lines
+546
to
+549
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not unpin On the cached-page branch, Suggested fix /* Skip tuples that have been logically deleted */
if (out_meta.xmax != 0) {
- bpm_.unpin_page_by_id(file_id_, tuple_id.page_num, false);
return false;
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
| } | ||||||||||||||||
|
Comment on lines
+546
to
+550
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep
🤖 Prompt for AI Agents |
||||||||||||||||
|
|
||||||||||||||||
| size_t cursor = 18; | ||||||||||||||||
| std::vector<common::Value> values; | ||||||||||||||||
| values.reserve(schema_.column_count()); | ||||||||||||||||
|
|
||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.