Skip to content

Conversation

@romange
Copy link
Collaborator

@romange romange commented Dec 5, 2025

Remove duplicate code for collapsing multiple blobs, similarly to #6171

Signed-off-by: Roman Gershman [email protected]

Copilot AI review requested due to automatic review settings December 5, 2025 17:19
Copy link

@augmentcode augmentcode bot left a 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.

Copy link
Contributor

Copilot AI left a 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 BackedArguments class with move semantics for managing arguments with backing storage
  • Refactored PipelineMessage to inherit from BackedArguments instead 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

Copy link
Contributor

Copilot AI left a 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.

@romange romange force-pushed the Pr3 branch 3 times, most recently from abf86d0 to 1e57dbf Compare December 7, 2025 09:58
Copilot AI review requested due to automatic review settings December 7, 2025 09:58
@romange romange changed the title chore: introduce BackedArguments chore: use BackedArguments for implementing a pipeline message Dec 7, 2025
Copy link
Contributor

Copilot AI left a 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.

@romange romange force-pushed the Pr3 branch 2 times, most recently from 1f1d27f to 2245d6d Compare December 7, 2025 17:48
@dragonflydb dragonflydb deleted a comment from Copilot AI Dec 7, 2025
Copilot AI review requested due to automatic review settings December 7, 2025 18:36
Copy link
Contributor

Copilot AI left a 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.

dranikpg
dranikpg previously approved these changes Dec 7, 2025
Copy link
Contributor

Copilot AI left a 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]>
Copilot AI review requested due to automatic review settings December 8, 2025 05:10
Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

@romange romange merged commit ba791bf into main Dec 8, 2025
22 checks passed
@romange romange deleted the Pr3 branch December 8, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants