-
Notifications
You must be signed in to change notification settings - Fork 983
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dragonfly_connection should only access the original reply_build…
…er (#3924) ConnectionContext.reply_builder can be injected and replaced by the service logic. before - dragonfly_connection accessed it via cc_->reply_builder in some places, which led it to access the injected object. Moreover, EVAL commands can be offloaded to another thread and that thread could inject the object, making the access to cc_->reply_builder_ non thread-safe. Now dragonfly_connection copies aside the replier_builder_ pointer, and uses only this pointer for communicating with client. Also, remove redundant arguments. Signed-off-by: Roman Gershman <[email protected]>
- Loading branch information
Showing
2 changed files
with
57 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.