forked-synapse/synapse/storage
Richard van der Hoff c84770b877 Fix bgupdate error if index already exists (#2167)
When creating a new table index in the background, guard against it existing already. Fixes
https://github.com/matrix-org/synapse/issues/2135.

Also, make sure we restore the autocommit flag when we're done, otherwise we
get more failures from other operations later on. Fixes
https://github.com/matrix-org/synapse/issues/1890 (hopefully).
2017-04-27 15:27:48 +01:00
..
engines Optionally make committing to postgres asynchronous. 2016-06-20 17:53:38 +01:00
schema Add index to device_lists_stream 2017-03-01 15:56:30 +00:00
util Fix assertion to stop transaction queue getting wedged 2017-03-15 12:16:55 +00:00
__init__.py admin,storage: added more administrator functionalities 2017-02-02 14:02:26 +01:00
_base.py Use iter(items|values) 2017-03-24 10:57:02 +00:00
account_data.py User Cursor.__iter__ instead of fetchall 2017-03-23 17:53:49 +00:00
appservice.py Ignore AS users when fetching push rules 2016-11-23 11:01:01 +00:00
background_updates.py Fix bgupdate error if index already exists (#2167) 2017-04-27 15:27:48 +01:00
client_ips.py Bail on where clause instead 2017-04-11 16:24:31 +01:00
deviceinbox.py Deduplicate new deviceinbox rows for replication 2017-04-04 16:21:21 +01:00
devices.py Add new storage functions for new replication 2017-03-30 11:48:35 +01:00
directory.py Add some invalidations to a cache_stream 2016-08-15 11:15:17 +01:00
end_to_end_keys.py Decrank last commit 2017-03-29 11:02:35 +01:00
event_federation.py Use txn.fetchall() so we can reuse txn 2017-03-30 10:30:05 +01:00
event_push_actions.py User Cursor.__iter__ instead of fetchall 2017-03-23 17:53:49 +00:00
events.py Correct logic in is_event_after 2017-04-13 13:46:17 +01:00
filtering.py Fail with a coherent error message if /sync?filter= is invalid 2016-11-21 13:15:25 +00:00
keys.py fix up some key verif docstrings 2017-03-21 13:27:50 +00:00
media_repository.py Implement purge_media_cache admin API 2016-06-29 14:57:59 +01:00
openid.py Add an openidish mechanism for proving to third parties that you own a given user_id 2016-05-05 13:42:44 +01:00
prepare_database.py User Cursor.__iter__ instead of fetchall 2017-03-23 17:53:49 +00:00
presence.py Actually call invalidate 2017-03-24 13:28:20 +00:00
profile.py Add the create_profile method back since the tests use it 2016-06-17 19:20:47 +01:00
push_rule.py Ignore AS users when fetching push rules 2016-11-23 11:01:01 +00:00
pusher.py Fix up docs 2017-03-31 11:19:24 +01:00
receipts.py Reduce cache size by not storing deferreds 2017-04-25 10:23:11 +01:00
registration.py User Cursor.__iter__ instead of fetchall 2017-03-23 17:53:49 +00:00
rejections.py copyrights 2016-01-07 04:26:29 +00:00
room.py User Cursor.__iter__ instead of fetchall 2017-03-23 17:53:49 +00:00
roommember.py Comment 2017-04-25 15:18:26 +01:00
search.py Remove spurious comment 2016-11-03 15:04:32 +00:00
signatures.py User Cursor.__iter__ instead of fetchall 2017-03-23 17:53:49 +00:00
state.py Make state caches cache in ascii 2017-04-25 17:22:55 +01:00
stream.py Assume rooms likely haven't changed 2017-03-13 09:50:10 +00:00
tags.py User Cursor.__iter__ instead of fetchall 2017-03-23 17:53:49 +00:00
transactions.py Fix tests and flake8 2016-11-22 18:18:31 +00:00