summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-09-23 17:22:01 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-09-23 17:22:01 +0100
commit2858d10671f889796ca79712e29b8f35b8c9cd98 (patch)
tree80c9309bbaf86811a980677e12afeedd19daf234 /synapse
parentImplement MSC2290 (#6043) (diff)
downloadsynapse-2858d10671f889796ca79712e29b8f35b8c9cd98.tar.xz
Fix the return value in the users_set_deactivated_flag background job
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/registration.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 805411a6b2..92dd42fb87 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -860,18 +860,18 @@ class RegistrationStore(
             )
 
             if batch_size > len(rows):
-                return True
+                return (True, rows_processed_nb)
             else:
-                return False
+                return (True, rows_processed_nb)
 
-        end = yield self.runInteraction(
+        end, nb_processed = yield self.runInteraction(
             "users_set_deactivated_flag", _background_update_set_deactivated_flag_txn
         )
 
         if end:
             yield self._end_background_update("users_set_deactivated_flag")
 
-        return batch_size
+        return nb_processed
 
     @defer.inlineCallbacks
     def add_access_token_to_user(self, user_id, token, device_id, valid_until_ms):