summary refs log tree commit diff
path: root/synapse/storage/stream.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-06-05 14:39:35 +0100
committerErik Johnston <erik@matrix.org>2018-06-05 16:40:16 +0100
commit918a5055ff9acb23476a178a74ca3363366504ed (patch)
treea282e75101926b961956b6ebf08837efb11edb26 /synapse/storage/stream.py
parentImplement backgroud update for chunks (diff)
downloadsynapse-github/erikj/chunks_stern.tar.xz
Use fractions for ordering of chunks github/erikj/chunks_stern erikj/chunks_stern
Using floats turned out to be a bad idea, as it broke subtely if the
needed precision was too large. This PR replaces the implementation with
one that uses fractions and stores them in the database as two integers.
Diffstat (limited to 'synapse/storage/stream.py')
-rw-r--r--synapse/storage/stream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py

index 0d32a3a498..c5b52a3d60 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py
@@ -792,7 +792,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore): iterated_chunks = [chunk_id] table = ChunkDBOrderedListStore( - txn, room_id, self.clock, + txn, room_id, self.clock, self.database_engine, ) if filter_clause: