[Zodb-checkins] CVS: ZODB3/Tools - update.py:1.1.2.5

Guido van Rossum guido@python.org
Thu, 19 Dec 2002 11:50:34 -0500


Update of /cvs-repository/ZODB3/Tools
In directory cvs.zope.org:/tmp/cvs-serv28812

Modified Files:
      Tag: ZODB3-fast-restart-branch
	update.py 
Log Message:
Add a hack to allow specifying an alternative client name (to run
multiple update instances in the same directory).


=== ZODB3/Tools/update.py 1.1.2.4 => 1.1.2.5 ===
--- ZODB3/Tools/update.py:1.1.2.4	Wed Dec 18 22:38:19 2002
+++ ZODB3/Tools/update.py	Thu Dec 19 11:50:33 2002
@@ -1,5 +1,6 @@
 #! /usr/bin/env python2.1
 
+import sys
 import random
 import time
 
@@ -12,6 +13,9 @@
 CACHE_SIZE = 200 * MB
 CLIENT = "cache"
 RECONNECT_TIMEOUT = 2
+
+if sys.argv[1:]:
+    CLIENT = sys.argv[1]
 
 NEARLY_FULL = CACHE_SIZE * 0.45