Fix infinite collection bug in mysql
This commit is contained in:
parent
2723df20d4
commit
0dd75da8d4
|
@ -59,8 +59,8 @@ def collect():
|
|||
conn = pymysql.connect(**args)
|
||||
cursor = conn.cursor()
|
||||
counters = {}
|
||||
cursor.execute('show global status')
|
||||
while True:
|
||||
cursor.execute('show global status')
|
||||
result = cursor.fetchone()
|
||||
if result is None:
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue