-
Notifications
You must be signed in to change notification settings - Fork 998
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
feat: add INFO memory section for squashing replies memory consuming #4147
Conversation
f281be5
to
803302e
Compare
@@ -238,6 +274,7 @@ bool MultiCommandSquasher::ExecuteSquashed(facade::RedisReplyBuilder* rb) { | |||
aborted |= error_abort_ && CapturingReplyBuilder::TryExtractError(replies.back()); | |||
|
|||
CapturingReplyBuilder::Apply(std::move(replies.back()), rb); | |||
current_reply_size_.fetch_sub(Size(replies.back()), std::memory_order_relaxed); |
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.
there is std::move line above on replies.back()
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.
That move does nothing there, unfortunately. But I've added a fix https://github.com/dragonflydb/dragonfly/pull/4149/files
part of the #4002
added INFO memory field "commnads_squashing_replies_bytes" to show the current consumption for replies of squashing commands