mirror of https://github.com/valkey-io/valkey
make ACLSelectorCanAccessDb static inline
Signed-off-by: Daniil Kashapov <daniil.kashapov.ykt@gmail.com>
This commit is contained in:
parent
c3afa1069e
commit
d7c9bd2ef6
|
|
@ -1763,7 +1763,7 @@ static int ACLCheckChannelAgainstList(list *reference, const char *channel, int
|
|||
}
|
||||
|
||||
/* Check if selector allows access to the specified database */
|
||||
int ACLSelectorCanAccessDb(aclSelector *selector, long long dbid) {
|
||||
static inline int ACLSelectorCanAccessDb(aclSelector *selector, long long dbid) {
|
||||
if (selector->flags & SELECTOR_FLAG_ALLDBS)
|
||||
return 1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue