-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore: use BackedArguments for implementing a pipeline message #6167
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
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.
Review completed. 2 suggestions posted.
Comment augment review to trigger a new review at any time.
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 introduces BackedArguments, a new class for managing heap-allocated command arguments to support async dispatch. It also establishes a new common/ directory for low-level utilities shared across facade, core, and server components, moving StringOrView and HeapSize from the dfly:: namespace to cmn::.
Key changes:
- New
BackedArgumentsclass with move semantics for managing arguments with backing storage - Refactored
PipelineMessageto inherit fromBackedArgumentsinstead of embedding its own storage - Moved utilities to
common/namespace and updated all references throughout the codebase
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/common/backed_args.h | New file defining BackedArguments class with storage and move semantics |
| src/common/string_or_view.h | Moved from core/, changed namespace from dfly:: to cmn:: |
| src/common/heap_size.h | Changed namespace from dfly:: to cmn:: |
| src/facade/dragonfly_connection.h | PipelineMessage now inherits BackedArguments, simplified interface |
| src/facade/dragonfly_connection.cc | Updated PipelineMessage::SetArgs and FromArgs to use BackedArguments base class |
| src/facade/conn_context.h | Removed unused heap_size.h include |
| src/facade/conn_context.cc | Updated HeapSize references to cmn::, removed retired flag |
| src/facade/redis_parser.cc | Updated HeapSize references to cmn:: |
| src/facade/redis_parser_test.cc | Updated HeapSize references to cmn:: |
| src/facade/reply_builder.cc | Commented out unused heap_size.h include |
| src/server/conn_context.cc | Updated HeapSize references to cmn:: |
| src/server/db_slice.h | Updated StringOrView include path |
| src/server/detail/wrapped_json_path.h | Updated StringOrView references to cmn:: |
| src/server/snapshot.cc | Removed unused heap_size.h include |
| src/server/tiering/decoders.h | Removed StringOrView include (now transitive via compact_object.h) |
| src/core/compact_object.h | Updated StringOrView include and added using declaration |
| src/core/search/indices.h | Updated StringOrView include path |
| src/core/search/indices.cc | Added using declaration for cmn::StringOrView |
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
Copilot reviewed 19 out of 19 changed files in this pull request and generated 6 comments.
abf86d0 to
1e57dbf
Compare
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
Copilot reviewed 10 out of 10 changed files in this pull request and generated 10 comments.
1f1d27f to
2245d6d
Compare
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
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
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
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Remove duplicate code for building backed arguments, similarly to #6171 Signed-off-by: Roman Gershman <[email protected]>
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
Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.
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
Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.
Remove duplicate code for collapsing multiple blobs, similarly to #6171
Signed-off-by: Roman Gershman [email protected]