diff options
author | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-27 14:53:45 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-27 14:53:45 +0100 |
commit | 324f21b216e84e8b2b9287bda4f2ad5565ac60c6 (patch) | |
tree | ca90bee6b761444c7d32456c05474da50fe16a25 /synapse/storage | |
parent | Update `_purge_room_txn` to take account of separated stats tables (diff) | |
download | synapse-324f21b216e84e8b2b9287bda4f2ad5565ac60c6.tar.xz |
Fix logic error.
`absolute_fields` being None shouldn't preclude completion of a current stats row. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/stats.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py index fce0fb5a56..35d8bdb7b7 100644 --- a/synapse/storage/stats.py +++ b/synapse/storage/stats.py @@ -315,7 +315,8 @@ class StatsStore(StateDeltasStore): if absolute_fields is None: absolute_fields = {} - elif complete_with_stream_id is not None: + + if complete_with_stream_id is not None: absolute_fields = absolute_fields.copy() absolute_fields["completed_delta_stream_id"] = complete_with_stream_id |