[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Add note about potential breakage in queue cleaning fun...



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.seul.org:/tmp/cvs-serv31677/minion/lib/mixminion

Modified Files:
	Queue.py 
Log Message:
Add note about potential breakage in queue cleaning functionality

Index: Queue.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Queue.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Queue.py	21 Oct 2002 02:31:02 -0000	1.18
+++ Queue.py	11 Nov 2002 16:32:41 -0000	1.19
@@ -200,7 +200,10 @@
            Returns 1 if a clean is already in progress; otherwise
            returns 0.
         """
+	# XXXX Race-prone if multiple processes sometimes try to clean
+	# XXXX the same queue.
         now = time.time()
+
         cleanFile = os.path.join(self.dir,".cleaning")
         try:
             s = os.stat(cleanFile)