fix(facade): Use ReplyScope in loop2 - #7779
Conversation
|
augment review |
🤖 Augment PR SummarySummary: This PR adjusts the pipelined reply path to ensure reply data lifetimes remain valid while batching replies. Changes:
Technical Notes: The updated flow keeps reply ordering intact while allowing the reply builder to batch/flush safely without prematurely freeing command-owned reply storage. 🤖 Was this summary useful? React with 👍 or 👎 |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
PR Summary by QodoFix ReplyBatch lifetime by using a single ReplyScope across IoLoopV2 batching
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
Context used✅ Tickets:
🎫 bug(eval) SIGILL when execute EVAL command✅ Cross-repo context Not relevant to this PR:
romange/helio 1. ReplyScope triggers early flush
|
| } | ||
|
|
||
| bool Connection::ReplyBatch() { | ||
| if (!HasInFlightCommands()) |
There was a problem hiding this comment.
why did you remove this condition?
There was a problem hiding this comment.
I made it part of the loop
romange
left a comment
There was a problem hiding this comment.
How to validate the improvement?
is there a regression test that covers this?
Yes, #7759 |
|
Ok, but for the reference, did you run any dfly_bench commands that show before and after? |
Yes, it shows improvement |
Fixes #7759