[Zodb-checkins] CVS: ZODB3/Tools - create.py:1.1.2.2

Guido van Rossum guido@python.org
Wed, 18 Dec 2002 22:40:03 -0500


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

Modified Files:
      Tag: ZODB3-fast-restart-branch
	create.py 
Log Message:
Remove unused variable.
Commit last transaction if number of objects is not a multiple of 100.


=== ZODB3/Tools/create.py 1.1.2.1 => 1.1.2.2 ===
--- ZODB3/Tools/create.py:1.1.2.1	Tue Dec 17 11:44:17 2002
+++ ZODB3/Tools/create.py	Wed Dec 18 22:40:02 2002
@@ -15,7 +15,6 @@
 CLIENT = "cache"
 RECONNECT_TIMEOUT = 10
 
-MAX_OBJ_SIZE = 10000
 NUM_OBJS = 10000
 
 def main():
@@ -36,6 +35,8 @@
         i += 1
         if i % 100 == 0:
             get_transaction().commit()
+    if i % 100 != 0:
+        get_transaction().commit()
 
 if __name__ == "__main__":
     main()