mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:06:08 -04:00
Don't use multiple UNIQUE constraints; it will cause deadlocks
This commit is contained in:
parent
c8d3f6486d
commit
0af5f5efaf
4 changed files with 17 additions and 15 deletions
|
@ -837,11 +837,11 @@ class SQLBaseStore(object):
|
|||
return curr_time
|
||||
|
||||
logger.debug("Got js: %r", js)
|
||||
d = json.loads(js)
|
||||
d = json.loads(str(js).decode("utf8"))
|
||||
start_time = update_counter("decode_json", start_time)
|
||||
|
||||
logger.debug("Got internal_metadata: %r", internal_metadata)
|
||||
internal_metadata = json.loads(internal_metadata)
|
||||
internal_metadata = json.loads(str(internal_metadata).decode("utf8"))
|
||||
start_time = update_counter("decode_internal", start_time)
|
||||
|
||||
ev = FrozenEvent(d, internal_metadata_dict=internal_metadata)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue