diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-11-16 15:30:15 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-11-16 15:30:15 +0000 |
commit | 10aaa1bc15775a228ce22ab45efbb55b5099289b (patch) | |
tree | 5874f1f23416fc5c046f25d73dc098ecfd00ddb1 /synapse/replication/__init__.py | |
parent | Cleanup in _simple_upsert_txn (diff) | |
download | synapse-10aaa1bc15775a228ce22ab45efbb55b5099289b.tar.xz |
_simple_upsert: retry on IntegrityError
wrap the call to _simple_upsert_txn in a loop so that we retry on an integrityerror: this means we can avoid locking the table provided there is an unique index.
Diffstat (limited to 'synapse/replication/__init__.py')
0 files changed, 0 insertions, 0 deletions