Reinstate event_search_postgres_gist handler

People may have queued updates for this, so we can't just delete it.
This commit is contained in:
Richard van der Hoff 2018-02-02 14:32:51 +00:00
parent a66f489678
commit 6b02fc80d1
3 changed files with 31 additions and 6 deletions

View file

@ -39,12 +39,7 @@ class RegistrationStore(background_updates.BackgroundUpdateStore):
# we no longer use refresh tokens, but it's possible that some people
# might have a background update queued to build this index. Just
# clear the background update.
@defer.inlineCallbacks
def noop_update(progress, batch_size):
yield self._end_background_update("refresh_tokens_device_index")
defer.returnValue(1)
self.register_background_update_handler(
"refresh_tokens_device_index", noop_update)
self.register_noop_background_update("refresh_tokens_device_index")
@defer.inlineCallbacks
def add_access_token_to_user(self, user_id, token, device_id=None):