Commit a9fdab74 authored by Jim Fulton's avatar Jim Fulton

Bugs Fixed

----------

- ZEO protocol 2 support was broken.  This caused very old clients to
  be unable to use new servers.
parent 794ddc9d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Change History Change History
================ ================
3.9.0b2 (2009-07-02) 3.9.0b2 (2009-07-??)
==================== ====================
Bugs Fixed Bugs Fixed
...@@ -11,6 +11,8 @@ Bugs Fixed ...@@ -11,6 +11,8 @@ Bugs Fixed
- ZEO client threads were unnamed, making it hard to debug thread - ZEO client threads were unnamed, making it hard to debug thread
management. management.
- ZEO protocol 2 support was broken. This caused very old clients to
be unable to use new servers.
3.9.0b2 (2009-06-11) 3.9.0b2 (2009-06-11)
==================== ====================
......
...@@ -1408,7 +1408,7 @@ class ZEOStorage308Adapter: ...@@ -1408,7 +1408,7 @@ class ZEOStorage308Adapter:
abortVersion = commitVersion abortVersion = commitVersion
def zeoLoad(self, oid): # Z200 def zeoLoad(self, oid): # Z200
p, s = self.storage,loadEx(oid) p, s = self.storage.loadEx(oid)
return p, s, '', None, None return p, s, '', None, None
def __getattr__(self, name): def __getattr__(self, name):
......
...@@ -96,7 +96,7 @@ Note that when taking to a 3.8 server, iteration won't work: ...@@ -96,7 +96,7 @@ Note that when taking to a 3.8 server, iteration won't work:
>>> os.remove('client-1.zec') >>> os.remove('client-1.zec')
>>> zope.testing.setupstack.rmtree('blobs') >>> zope.testing.setupstack.rmtree('blobs')
>>> zope.testing.setupstack.rmtree('server-blobs') >>> zope.testing.setupstack.rmtree('server-blobs')
And the other way around: And the other way around:
>>> addr, _ = start_server(storage_conf, dict(invalidation_queue_size=5)) >>> addr, _ = start_server(storage_conf, dict(invalidation_queue_size=5))
...@@ -165,6 +165,20 @@ Note that we'll have to pull some hijinks: ...@@ -165,6 +165,20 @@ Note that we'll have to pull some hijinks:
>>> conn.root()['blob2'].open().read() >>> conn.root()['blob2'].open().read()
'blob data 2' 'blob data 2'
Make some old protocol calls:
>>> db.storage._server.rpc.call('getSerial', conn.root()._p_oid
... ) == conn.root()._p_serial
True
>>> p, s, v, x, y = db.storage._server.rpc.call('zeoLoad',
... conn.root()._p_oid)
>>> (v, x, y) == ('', None, None)
True
>>> db.storage.load(conn.root()._p_oid) == (p, s)
True
>>> db2.close() >>> db2.close()
>>> db.close() >>> db.close()
......
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