Merge lp:~thisfred/u1db/check-replica-trans-id into lp:u1db
Proposed by
Eric Casteleijn
Status: | Merged |
---|---|
Approved by: | Eric Casteleijn |
Approved revision: | 331 |
Merged at revision: | 329 |
Proposed branch: | lp:~thisfred/u1db/check-replica-trans-id |
Merge into: | lp:u1db |
Prerequisite: | lp:~thisfred/u1db/validate_transaction_id_of_source |
Diff against target: |
150 lines (+79/-15) 4 files modified
src/u1db.c (+25/-13) u1db/backends/__init__.py (+6/-0) u1db/errors.py (+1/-1) u1db/tests/test_backends.py (+47/-1) |
To merge this branch: | bzr merge lp:~thisfred/u1db/check-replica-trans-id |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Samuele Pedroni | Approve | ||
John A Meinel (community) | Approve | ||
Review via email: mp+110159@code.launchpad.net |
Commit message
Use the validate_source method in _put_doc_if_newer to make sure the other replica isn't deluded.
Description of the change
Use the validate_source method in _put_doc_if_newer to make sure the other replica isn't deluded.
To post a comment you must log in.
Don't you need to free the stored_vc? Or is that code already in place? Is the value getting parsed 2 times?
Things seem to be ok, with the caveat that I think the signature of validate should change a little.