Commit 96d783ca authored by Jim Fulton's avatar Jim Fulton

Fixed a bug in setting version cache sizes that caused non-version caches

to get version cache settings.
parent 7f43e19d
......@@ -84,8 +84,8 @@
##############################################################################
"""Database objects
$Id: DB.py,v 1.17 1999/09/23 16:40:01 jim Exp $"""
__version__='$Revision: 1.17 $'[11:-2]
$Id: DB.py,v 1.18 1999/10/07 19:48:18 jim Exp $"""
__version__='$Revision: 1.18 $'[11:-2]
import cPickle, cStringIO, sys, POSException
from Connection import Connection
......@@ -538,7 +538,7 @@ class DB:
def setVersionCacheSize(self, v):
self._version_cache_size=v
for ver in self._pools[0].keys():
if v:
if ver:
for c in self._pools[0][ver][1]:
c._cache.cache_size=v
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment