Skip to content

Commit b1aad0f

Browse files
pufitnikitamikhaylov
authored andcommitted
Fix
1 parent 652041a commit b1aad0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Access/Common/AccessRightsElement.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ void AccessRightsElement::formatONClause(WriteBuffer & buffer, bool hilite) cons
156156
/// If `enable_user_name_access_type` is set to false, we will dump `GRANT CREATE USER ON *` as `GRANT CREATE USER ON *.*`.
157157
/// This will allow us to run old replicas in the same cluster.
158158
if (access_flags.getParameterType() == AccessFlags::USER_NAME
159-
&& is_enabled_user_name_access_type)
159+
&& !is_enabled_user_name_access_type)
160160
{
161161
if (!anyParameter())
162-
LOG_INFO(getLogger("AccessRightsElement"),
162+
LOG_WARNING(getLogger("AccessRightsElement"),
163163
"Converting {} to *.* because the setting `enable_user_name_access_type` is `false`. "
164164
"Consider turning this setting on, if your cluster contains no replicas older than 25.1",
165165
parameter);

0 commit comments

Comments
 (0)