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

since #9822, the static reply buffer is no longer part of the client structure, so we need to dismiss it.
This commit is contained in:
Oran Agra 2022-03-08 15:17:15 +02:00 committed by GitHub
parent 4f19b4d0c1
commit b3fe4f31a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6417,7 +6417,8 @@ void dismissMemory(void* ptr, size_t size_hint) {
/* Dismiss big chunks of memory inside a client structure, see dismissMemory() */
void dismissClientMemory(client *c) {
/* Dismiss client query buffer. */
/* Dismiss client query buffer and static reply buffer. */
dismissSds(c->buf);
dismissSds(c->querybuf);
dismissSds(c->pending_querybuf);
/* Dismiss argv array only if we estimate it contains a big buffer. */
@ -6443,9 +6444,6 @@ void dismissClientMemory(client *c) {
if (bulk) dismissMemory(bulk, bulk->size);
}
}
/* The client struct has a big static reply buffer in it. */
dismissMemory(c, 0);
}
/* In the child process, we don't need some buffers anymore, and these are