Unverified Commit d7ae8587 authored by Wen Hui's avatar Wen Hui Committed by GitHub
Browse files

Fix streamParseAddOrTrimArgsOrReply function minor comment issue (#10783)



When I read the source codes, I have no idea where the option "age" come from.
Co-authored-by: default avatarUbuntu <lucas.guang.yang1@huawei.com>
Co-authored-by: default avatarguybe7 <guy.benoish@redislabs.com>
parent ed29d634
...@@ -946,7 +946,7 @@ static int streamParseAddOrTrimArgsOrReply(client *c, streamAddTrimArgs *args, i ...@@ -946,7 +946,7 @@ static int streamParseAddOrTrimArgsOrReply(client *c, streamAddTrimArgs *args, i
} }
args->approx_trim = 0; args->approx_trim = 0;
char *next = c->argv[i+1]->ptr; char *next = c->argv[i+1]->ptr;
/* Check for the form MINID ~ <id>|<age>. */ /* Check for the form MINID ~ <id> */
if (moreargs >= 2 && next[0] == '~' && next[1] == '\0') { if (moreargs >= 2 && next[0] == '~' && next[1] == '\0') {
args->approx_trim = 1; args->approx_trim = 1;
i++; i++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment