mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user