mirror of https://mirror.osredm.com/root/redis.git
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: Ubuntu <lucas.guang.yang1@huawei.com> Co-authored-by: guybe7 <guy.benoish@redislabs.com>
This commit is contained in:
parent
ed29d634b3
commit
d7ae858745
|
@ -946,7 +946,7 @@ static int streamParseAddOrTrimArgsOrReply(client *c, streamAddTrimArgs *args, i
|
|||
}
|
||||
args->approx_trim = 0;
|
||||
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') {
|
||||
args->approx_trim = 1;
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue