api for validating transaction_id of source_replica

Bug #1006879 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
U1DB
Fix Released
High
Eric Casteleijn

Bug Description

related to bug #999574

We need an api for code like _put_doc_if_newer to use to validate a given replica_uid, generation, and transaction_id.
It seems worthwhile to factor this out into a separate method, and give it nice unit testing.

This probably needs to be done before bug #1006876

Related branches

John A Meinel (jameinel)
summary: - api for validating transaction_id
+ api for validating transaction_id of source_replica
John A Meinel (jameinel)
Changed in u1db:
milestone: pre-release → full-release
Changed in u1db:
assignee: nobody → Eric Casteleijn (thisfred)
status: Confirmed → In Progress
Revision history for this message
Eric Casteleijn (thisfred) wrote :

Valid here meaning that the generation passed in is greater than what we know of the source? I'm not sure we can do much more in _put_doc_if_newer, since if I understand it correctly, it gets as a parameter the gen+txid of the document to be put, which should be greater than any we already know about, so we can't really do anything with the transaction id here, or is the incomping generation+txid meant to be the one at last sync? (In which case, how do we set the new pair in _set_sync_info?)

Revision history for this message
Eric Casteleijn (thisfred) wrote :

never mind I should have read the whole bug this was split out of.

Changed in u1db:
status: In Progress → Fix Committed
Changed in u1db:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.