Author: justi9
Date: 2008-12-11 12:00:32 -0500 (Thu, 11 Dec 2008)
New Revision: 2974
Modified:
mgmt/trunk/mint/python/mint/sql.py
Log:
Revert the table locking
Modified: mgmt/trunk/mint/python/mint/sql.py
===================================================================
--- mgmt/trunk/mint/python/mint/sql.py 2008-12-11 16:59:56 UTC (rev 2973)
+++ mgmt/trunk/mint/python/mint/sql.py 2008-12-11 17:00:32 UTC (rev 2974)
@@ -151,10 +151,9 @@
if table.endswith("_stats"):
parent_table = table[0:table.find("_stats")]
sql = """
- lock table %s in share row exclusive mode;
delete from %s
where qmf_update_time < now() - interval '%%(threshold)s seconds'
- """ % (parent_table, table)
+ """ % table
if self.keepCurrStats:
sql += " and id not in (select stats_curr_id from %s)" %
(parent_table)
else:
Show replies by date