[Zope-Checkins] CVS: ZODB3/ZEO - ClientStorage.py:1.110.2.4

Jeremy Hylton cvs-admin at zope.org
Tue Nov 11 17:16:42 EST 2003


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv10435/ZEO

Modified Files:
      Tag: ZODB3-mvcc-2-branch
	ClientStorage.py 
Log Message:
Change the way filenames for the cache are generated.


=== ZODB3/ZEO/ClientStorage.py 1.110.2.3 => 1.110.2.4 ===
--- ZODB3/ZEO/ClientStorage.py:1.110.2.3	Mon Nov 10 17:42:54 2003
+++ ZODB3/ZEO/ClientStorage.py	Tue Nov 11 17:16:12 2003
@@ -298,7 +298,14 @@
         self._oid = '\0\0\0\0\0\0\0\0'
 
         # Decide whether to use non-temporary files
-        self._cache = self.ClientCacheClass()
+        if client is not None:
+            dir = var or os.getcwd()
+            cache_path = os.path.join(dir, "%s-%s.zec" % (client, storage))
+        else:
+            cache_path = None
+        self._cache = self.ClientCacheClass(cache_path)
+        # XXX When should it be opened?
+        self._cache.open()
 
         self._rpc_mgr = self.ConnectionManagerClass(addr, self,
                                                     tmin=min_disconnect_poll,




More information about the Zope-Checkins mailing list