summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-05-31 19:23:04 +0100
committerErik Johnston <erik@matrix.org>2018-05-31 19:23:04 +0100
commita09d5e45b0ce6371a2af0ac0c69a445f33611385 (patch)
tree9fd639e1d04c087ae3b0754f33b8a89a98c8bf12
parentfixup (diff)
downloadsynapse-a09d5e45b0ce6371a2af0ac0c69a445f33611385.tar.xz
fixu
-rw-r--r--synapse/storage/chunk_ordered_table.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/chunk_ordered_table.py b/synapse/storage/chunk_ordered_table.py
index a65c10f652..125636a1e2 100644
--- a/synapse/storage/chunk_ordered_table.py
+++ b/synapse/storage/chunk_ordered_table.py
@@ -188,7 +188,7 @@ class ChunkDBOrderedListStore(OrderedListStore):
 
             row = self.txn.fetchone()
             if row:
-                self._insert_at_start(node_id, row[0])
+                new_order = self._insert_at_start(node_id, row[0])
             else:
                 new_order = self._insert_first(node_id)
 
@@ -328,7 +328,7 @@ class ChunkDBOrderedListStore(OrderedListStore):
         """Implements OrderedListStore"""
 
         next_chunk_id = SQLBaseStore._simple_select_one_onecol_txn(
-            txn,
+            self.txn,
             table="chunk_linearized",
             keyvalues={
                 "chunk_id": node_id,