MXS-1389: Allow mandatory commands to pass
All commands that are deemed mandatory must be allowed to pass through the filter.
This commit is contained in:
parent
f0a9866a87
commit
26f0c08522
@ -1383,9 +1383,13 @@ int DbfwSession::routeQuery(GWBUF* buffer)
|
||||
}
|
||||
|
||||
SUser suser = find_user_data(this_thread.users, user(), remote());
|
||||
bool query_ok = command_is_mandatory(buffer);
|
||||
bool query_ok = false;
|
||||
|
||||
if (suser)
|
||||
if (command_is_mandatory(buffer))
|
||||
{
|
||||
query_ok = true;
|
||||
}
|
||||
else if (suser)
|
||||
{
|
||||
char* rname = NULL;
|
||||
bool match = suser->match(m_instance, this, analyzed_queue, &rname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user