This commit is contained in:
debing.sun 2025-07-15 21:39:53 -07:00 committed by GitHub
commit 7e788fd6ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -559,6 +559,7 @@ int streamAppendItem(stream *s, robj **argv, int64_t numfields, streamID *added_
if (server.stream_node_max_bytes > 0 && server.stream_node_max_bytes < prealloc) {
prealloc = server.stream_node_max_bytes;
}
if (prealloc < totelelen) prealloc = totelelen;
lp = lpNew(prealloc);
lp = lpAppendInteger(lp,1); /* One item, the one we are adding. */
lp = lpAppendInteger(lp,0); /* Zero deleted so far. */