[Zodb-checkins] CVS: Packages/ZEO - multi.py:1.1.2.2

jeremy@digicool.com jeremy@digicool.com
Wed, 25 Apr 2001 18:50:39 -0400 (EDT)


Update of /cvs-repository/Packages/ZEO/tests
In directory korak:/tmp/cvs-serv5828

Modified Files:
      Tag: ZEO-ZRPC-Dev
	multi.py 
Log Message:
Remove the extra delay inside the main update loop.
Add a couple of XXX comments.



--- Updated File multi.py in package Packages/ZEO --
--- multi.py	2001/04/25 21:05:42	1.1.2.1
+++ multi.py	2001/04/25 22:50:38	1.1.2.2
@@ -94,7 +94,6 @@
     prev = None
     i = 0
     while i < RECORDS_PER_CLIENT:
-        time.sleep(CONFLICT_DELAY)
         try:
             size = len(dict)
             r = dict[size] = Record(pid, size)
@@ -102,7 +101,6 @@
                 prev.set_next(r)
             get_transaction().commit()
         except ZODB.POSException.ConflictError, err:
-##            print "ConflictError: %s: %s" % (pid, err)
             get_transaction().abort()
             time.sleep(CONFLICT_DELAY)
         else:
@@ -116,6 +114,7 @@
 
 def shutdown_server(addr):
     import ZEO.ClientStorage
+    # XXX this doesn't work!
     cli = ZEO.ClientStorage.ClientStorage(addr)
     cli._server.rpc.callAsync('shutdown')
 
@@ -139,6 +138,8 @@
     t2 = time.time()
     shutdown_server(addr)
     os.waitpid(server_pid, 0)
+
+    # XXX Should check that the results are consistent!
 
     print "Total time:", t2 - t0
     print "Server start time", t1 - t0