Author: nunofsantos
Date: 2008-11-21 11:06:42 -0500 (Fri, 21 Nov 2008)
New Revision: 2861
Modified:
mgmt/trunk/mint/python/mint/update.py
Log:
commit if queue is empty
Modified: mgmt/trunk/mint/python/mint/update.py
===================================================================
--- mgmt/trunk/mint/python/mint/update.py 2008-11-21 15:59:33 UTC (rev 2860)
+++ mgmt/trunk/mint/python/mint/update.py 2008-11-21 16:06:42 UTC (rev 2861)
@@ -58,7 +58,7 @@
try:
update.process(self.model, conn)
- if self.model.cache.isDirty() and (self.dequeueCount % self.commitThreshold == 0
or self.updates.qsize() == 0):
+ if self.dequeueCount % self.commitThreshold == 0 or self.updates.qsize() == 0:
# commit only every "commitThreshold" updates, or whenever the update
queue is empty
conn.commit()
self.model.cache.commit()