HomePhorge

Fix race condition in relation state handling

Description

Fix race condition in relation state handling

Make sure we use the same timestamp to insert the new
syncroton_relations_state entry even if we execute this multiple times.

Not using a current timestamp and instead using the sync timestamp
isn't strictily necessary, but makes the execution more deterministic
(less moving parts). It's either way racy, which is going to be
addressed in a separate commit.

Details

Provenance
mollekopfAuthored on Tue, Aug 27, 4:24 PM
mollekopfPushed on Thu, Aug 29, 12:27 PM
Differential Revision
D4902: Fix relation handling in syncroton
Parents
rS71838700603e: RelationsTest
Branches
Unknown
Tags
Unknown
Build Status
Buildable 48846