Skip to content

Commit

Permalink
Changes to handle_serials merged to version 4 and removed in version 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jul 12, 2016
1 parent 28086b9 commit 14c65a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ notifications:
install:
- pip install -U pip setuptools
- pip install -U tox coveralls
# Install patched version of 4.4.2; only change is in a test method.
# Install patched version of 4; waiting on 4.4.3.
# Same change was merged to 5.0 branch post a5
- pip install git+https://github.com/NextThought/ZODB.git@handle-serials4#egg=ZODB
- pip install git+https://github.com/zopefoundation/ZODB.git@4#egg=ZODB
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install -U python-memcached; fi
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then pip install -U pylibmc cffi; fi
- pip install -U -e ".[test]"
Expand Down
1 change: 0 additions & 1 deletion relstorage/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ def _check_tid_after_load(self, oid_int, actual_tid_int,
# transaction order, leading it to sometimes put the
# wrong tid in delta_after*.
cp0, cp1 = self.checkpoints
import os

msg = ("Detected an inconsistency "
"between the RelStorage cache and the database "
Expand Down
6 changes: 2 additions & 4 deletions relstorage/tests/RecoveryStorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from transaction import Transaction
from ZODB import DB
from ZODB.serialize import referencesf
from ZODB.tests.StorageTestBase import handle_serials
from ZODB.tests.StorageTestBase import MinPO
from ZODB.tests.StorageTestBase import snooze
from ZODB.tests.StorageTestBase import zodb_pickle
Expand Down Expand Up @@ -215,10 +214,9 @@ def checkRestoreAfterDoubleCommit(self):
# Store an object
self._storage.store(oid, revid, data1, '', t)
# Store it again
r1 = self._storage.store(oid, revid, data2, '', t)
self._storage.store(oid, revid, data2, '', t)
# Finish the transaction
r2 = self._storage.tpc_vote(t)
revid = handle_serials(oid, r1, r2)
self._storage.tpc_vote(t)
self._storage.tpc_finish(t)
except:
self._storage.tpc_abort(t)
Expand Down

0 comments on commit 14c65a1

Please sign in to comment.