[Zodb-checkins] CVS: StandaloneZODB/ZEO - StorageServer.py:1.28.2.5

Jeremy Hylton jeremy@zope.com
Fri, 19 Oct 2001 14:59:34 -0400


Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv7916

Modified Files:
      Tag: zeo-1_0-branch
	StorageServer.py 
Log Message:
Make the pack_trigger an attribute of the server not the connection.

There's no need to have one trigger for each connection.



=== StandaloneZODB/ZEO/StorageServer.py 1.28.2.4 => 1.28.2.5 ===
         self.__get_connections=self.__connections.get
 
+        self._pack_trigger = trigger.trigger()
         asyncore.dispatcher.__init__(self)
 
         if type(connection) is type(''):
@@ -245,7 +246,6 @@
         self.__server=server
         self.__invalidated=[]
         self.__closed=None
-        self._pack_trigger = trigger.trigger()
         if __debug__: debug='ZEO Server'
         else: debug=0
         SizedMessageAsyncConnection.__init__(self, sock, addr, debug=debug)
@@ -415,11 +415,11 @@
                 error=sys.exc_info())
             if wait:
                 self.return_error(sys.exc_info()[0], sys.exc_info()[1])
-                self._pack_trigger.pull_trigger()
+                self.__server._pack_trigger.pull_trigger()
         else:
             if wait:
                 self.message_output('RN.')
-                self._pack_trigger.pull_trigger()
+                self.__server._pack_trigger.pull_trigger()
             else:
                 # Broadcast new size statistics
                 self.__server.invalidate(0, self.__storage_id, (),