summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-04-21 17:39:24 +0100
committerErik Johnston <erik@matrix.org>2016-04-21 17:39:24 +0100
commite395eb1108abac2ada1f846d08285a84fd5042a2 (patch)
treedeb8c901fb02f64a3df964dea009a7491c3f7423 /synapse/storage
parentFix SQL statement (diff)
downloadsynapse-e395eb1108abac2ada1f846d08285a84fd5042a2.tar.xz
Update progress when creating index
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/search.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/storage/search.py b/synapse/storage/search.py
index f7730f5d7c..1baed674a8 100644
--- a/synapse/storage/search.py
+++ b/synapse/storage/search.py
@@ -158,6 +158,13 @@ class SearchStore(BackgroundUpdateStore):
                 )
                 conn.set_session(autocommit=False)
 
+                pg = dict(progress)
+                pg["have_added_indexes"] = True
+
+                self._background_update_progress_txn(
+                    conn.cursor(), self.EVENT_SEARCH_ORDER_UPDATE_NAME, progress
+                )
+
             yield self.runWithConnection(create_index)
 
         INSERT_CLUMP_SIZE = 1000