theconductor
06/04/2024, 4:55 PMvroldanbet
06/04/2024, 5:07 PMPreconditions
block in WriteRelationships
to make sure no other tuple except from the one of the lease holder exists.theconductor
06/04/2024, 5:13 PMtheconductor
06/04/2024, 5:13 PMvroldanbet
06/04/2024, 5:15 PMAlec
06/04/2024, 5:34 PMBen
06/04/2024, 11:15 PMPrecondition_OPERATION_MUST_MATCH
) or if no matches were found (Precondition_OPERATION_MUST_NOT_MATCH
), but I don't see a way to check for "no other tuple except for the one of the lease holder exists", am I correct?
In this case, I imagine the scenario to look something like:
- Get the tuples for your object (either all of them of just the lock one)
- Optionally perform some client-side logic based on the results
- Send a WriteRelationships
request with:
- The operations you want to perform
- A delete operation on the previous lock tuple
- A create operation on a new lock tuple
- A precondition requiring the previous lock tuple to still exist
Is this how you would typically do it?vroldanbet
06/05/2024, 8:28 AM