gs_checkse工具用户最大连接数修复
This commit is contained in:
parent
586fdd9d80
commit
83166f78a3
@ -2767,7 +2767,10 @@ def setUserConnection(data):
|
||||
result.db = []
|
||||
try:
|
||||
for item in data.db:
|
||||
sql_query = """ALTER ROLE %s CONNECTION LIMIT 1024;""" %(item.split("|")[0].strip())
|
||||
user_to_modify = item.split("|")[0].strip()
|
||||
if user_to_modify == getUserInfo().username:
|
||||
continue
|
||||
sql_query = """ALTER ROLE %s CONNECTION LIMIT 1024;""" % user_to_modify
|
||||
getDatabaseInfo(result, sql_query)
|
||||
except Exception as e:
|
||||
data.errormsg = e.__str__()
|
||||
|
Loading…
x
Reference in New Issue
Block a user