summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-27 14:49:12 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-27 14:49:12 +0100
commit10c1a233f91bd3fcc505e5521cadfc6ed8daa301 (patch)
treec2d725c4a3e2eb75a22372181420338666df0270
parentInvalidate `get_earliest_token_for_stats` cache as required. (diff)
downloadsynapse-10c1a233f91bd3fcc505e5521cadfc6ed8daa301.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>
-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 d345b2cb32..ede5002fca 100644 --- a/synapse/storage/stats.py +++ b/synapse/storage/stats.py
@@ -430,7 +430,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 self.get_earliest_token_for_stats.invalidate(stats_type, stats_id)