summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-27 14:53:45 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-27 14:53:45 +0100
commit324f21b216e84e8b2b9287bda4f2ad5565ac60c6 (patch)
treeca90bee6b761444c7d32456c05474da50fe16a25 /synapse
parentUpdate `_purge_room_txn` to take account of separated stats tables (diff)
downloadsynapse-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')
-rw-r--r--synapse/storage/stats.py3
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