Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/asyncio' into client-side-confli…
Browse files Browse the repository at this point in the history
…ct-resolution

Conflicts:
	src/ZEO/ClientStorage.py
	src/ZEO/StorageServer.py
  • Loading branch information
Jim Fulton committed Jul 7, 2016
2 parents 92e4985 + 1eb086d commit 5a5320e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -115,7 +115,7 @@ def emit(self, record):
tests_require = tests_require,
extras_require = dict(test=tests_require),
install_requires = [
'ZODB >= 5.0.0a1',
'ZODB >= 5.0.0a5',
'six',
'transaction >= 1.6.0',
'persistent >= 4.1.0',
Expand Down
11 changes: 6 additions & 5 deletions src/ZEO/ClientStorage.py
Expand Up @@ -745,6 +745,12 @@ def tpc_vote(self, txn):

vote_attempts += 1

except POSException.StorageTransactionError:
# Hm, we got disconnected and reconnected bwtween
# _check_trans and voting. Let's chack the transaction again:
self._check_trans(txn, 'tpc_vote')
raise

except POSException.ConflictError as err:
oid = getattr(err, 'oid', None)
if oid is not None:
Expand All @@ -757,11 +763,6 @@ def tpc_vote(self, txn):
# cache entry is bad and invalidate it.
self._cache.invalidate(oid, None)
raise
except POSException.StorageTransactionError:
# Hm, we got disconnected and reconnected bwtween
# _check_trans and voting. Let's chack the transaction again:
tbuf = self._check_trans(txn, 'tpc_vote')
raise

if tbuf.exception:
raise tbuf.exception
Expand Down
5 changes: 0 additions & 5 deletions src/ZEO/StorageServer.py
Expand Up @@ -1333,11 +1333,6 @@ class Serving(ServerEvent):
class Closed(ServerEvent):
pass

default_cert_authenticate = 'SIGNED'
def ssl_config(section):
from .sslconfig import ssl_config
return ssl_config(section, True)

def never_resolve_conflict(oid, committedSerial, oldSerial, newpickle,
committedData=b''):
raise ConflictError(oid=oid, serials=(committedSerial, oldSerial),
Expand Down

0 comments on commit 5a5320e

Please sign in to comment.