From 0dd75da8d4c0e532ccaa11b1034b886e0fe4675e Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Tue, 27 Oct 2015 10:12:27 +0900 Subject: [PATCH] Fix infinite collection bug in mysql --- openstack_qa_tools/collectors/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_qa_tools/collectors/mysql.py b/openstack_qa_tools/collectors/mysql.py index 7aa7401..3ff9d06 100644 --- a/openstack_qa_tools/collectors/mysql.py +++ b/openstack_qa_tools/collectors/mysql.py @@ -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