Skip to content

Conversation

@zhugezy
Copy link
Contributor

@zhugezy zhugezy commented Mar 8, 2022

introduced in #10147 since we blocked the first-arg mechanism on subcommands

src/acl.c Outdated
Comment on lines 124 to 125
* WARNING: Allowing a first arg of an otherwise blocked command is a misuse of ACL
* and may get disabled in the future.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not certain the warning is needed here.
this information is already present in both redis.conf, and also in the comment above ACLSetSelector.
we should either copy the same text from there, or better yet, trim some excessive info from, but not add more.

i see two valid options:

  1. trim just the outdated line, the one that mentions loglevel, but keep the select example which is still valid.
  2. trim the select example lines too, but IMHO no need to add any additional repeated info.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer approach 2

@oranagra oranagra merged commit 4f19b4d into redis:unstable Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants