summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-31 16:25:57 +0100
committerErik Johnston <erik@matrix.org>2016-08-31 16:25:57 +0100
commit0cfd6c316193895b6fd5c761253305cf8688cef1 (patch)
tree5bdf6c5b379793376d13fc8a04dbea7d393ab1c6
parentHandle the fact that workers can't generate state groups (diff)
downloadsynapse-0cfd6c316193895b6fd5c761253305cf8688cef1.tar.xz
Use state_groups table to test existence
Diffstat (limited to '')
-rw-r--r--synapse/storage/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index dce5a2f135..ec551b0b4f 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -85,7 +85,7 @@ class StateStore(SQLBaseStore):
 
     def _have_persisted_state_group_txn(self, txn, state_group):
         txn.execute(
-            "SELECT count(*) FROM state_groups_state WHERE state_group = ?",
+            "SELECT count(*) FROM state_groups WHERE id = ?",
             (state_group,)
         )
         row = txn.fetchone()