From a09d5e45b0ce6371a2af0ac0c69a445f33611385 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 31 May 2018 19:23:04 +0100 Subject: [PATCH] fixu --- synapse/storage/chunk_ordered_table.py | 4 ++-- 1 file 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,