-
Notifications
You must be signed in to change notification settings - Fork 734
Make flat_mem_iter.h usable with Standard Libraries that return itera… #29366
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
Conversation
…tors other than pointers
|
Hi! Thank you for contributing! |
|
🟢 |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
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.
Pull request overview
This PR improves compatibility with Standard Libraries that return iterator types (other than raw pointers) from .begin() by changing to use .data() instead when constructing TDbTupleRef objects in flat_mem_iter.h.
- Changed line 142 to use
.data()instead of.begin()for accessing vector elements when constructing TDbTupleRef
Comments suppressed due to low confidence (1)
ydb/core/tablet_flat/flat_mem_iter.h:136
- Inconsistent use of
.begin()forKeyCellDefaults->BasicTypes(). This should use.data()to match line 142 and ensure compatibility with Standard Libraries that return iterators other than pointers. TheTDbTupleRefconstructor expects a pointer (const TCell*), not an iterator.
return { KeyCellDefaults->BasicTypes().begin(), key, len };
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@apolukhin Please look at line 136. It's supposed to be changed to |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
…tors other than pointers
Changelog entry
...
Changelog category
Description for reviewers
...