mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-03-02 02:19:16 -05:00

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).