HomePhabricator

Fix race condition for update

Description

Fix race condition for update

When a duplicate update request is sent, the second request will
cause no change (since it's in the same second as the first one
so rl_date_updated is the same) so the database reports zero changed
rows, triggering the LogicException. Just detect and skip such
updates instead.

Change-Id: Iea1883af8676839254777922f3ca9eb57596cb4e

Details

Provenance
TgrAuthored on Feb 23 2018, 1:36 AM
MhollowayCommitted on Mar 5 2018, 7:37 PM
Parents
rERLS4d77be3ebd71: Return result row after insert/update
Branches
Unknown
Tags
Unknown
ChangeId
Iea1883af8676839254777922f3ca9eb57596cb4e