Skip to content

dismiss COW of client output buffer now that it's dynamic#10371

Merged
oranagra merged 1 commit intoredis:unstablefrom
oranagra:dismiss_client_static_reply_buf
Mar 8, 2022
Merged

dismiss COW of client output buffer now that it's dynamic#10371
oranagra merged 1 commit intoredis:unstablefrom
oranagra:dismiss_client_static_reply_buf

Conversation

@oranagra
Copy link
Member

@oranagra oranagra commented Mar 2, 2022

since #9822, the static reply buffer is no longer part of the client structure, so we need to dismiss it.

@oranagra oranagra requested a review from yossigo March 2, 2022 11:21
@oranagra oranagra merged commit b3fe4f3 into redis:unstable Mar 8, 2022
@oranagra oranagra deleted the dismiss_client_static_reply_buf branch March 8, 2022 13:17
void dismissClientMemory(client *c) {
/* Dismiss client query buffer. */
/* Dismiss client query buffer and static reply buffer. */
dismissSds(c->buf);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oranagra pushed a commit that referenced this pull request Mar 9, 2022
c->buf is not sds, so we should use dismissMemory instead of dismissSds to dismiss it.
This is a recent regression from #10371
@oranagra oranagra mentioned this pull request Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants