diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-09-24 14:43:38 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-09-24 14:43:38 +0100 |
commit | 12fe2a29bc4b15f667022c4ceb5428405ca3da9d (patch) | |
tree | cbbf7b0b36133a343d57fe80e268309ec13bf68c | |
parent | Fix logging (diff) | |
download | synapse-12fe2a29bc4b15f667022c4ceb5428405ca3da9d.tar.xz |
Incorporate review
-rw-r--r-- | synapse/storage/registration.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index 4c84d804fe..c3acc8ecaf 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -844,7 +844,7 @@ class RegistrationStore( rows = self.cursor_to_dict(txn) if not rows: - return True + return True, 0 rows_processed_nb = 0 @@ -860,9 +860,9 @@ class RegistrationStore( ) if batch_size > len(rows): - return (True, rows_processed_nb) + return True, len(rows) else: - return (False, rows_processed_nb) + return False, len(rows) end, nb_processed = yield self.runInteraction( "users_set_deactivated_flag", _background_update_set_deactivated_flag_txn |