diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-04-06 16:19:25 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-04-06 16:19:25 +0100 |
commit | e815763b7fb8ddbd7ef7d2849e4925dfdbf5f83c (patch) | |
tree | f94fde824bae2bd9238c0f26addb66964b5aba22 /synapse/storage | |
parent | Merge pull request #698 from matrix-org/erikj/port_script_fix (diff) | |
parent | Add a slaved events store class (diff) | |
download | synapse-e815763b7fb8ddbd7ef7d2849e4925dfdbf5f83c.tar.xz |
Merge pull request #697 from matrix-org/markjh/slaveI
Add a slaved events store class
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index 5d299a1132..ee87a71719 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -1134,7 +1134,7 @@ class EventsStore(SQLBaseStore): upper_bound = current_forward_id sql = ( - "SELECT -event_stream_ordering FROM current_state_resets" + "SELECT event_stream_ordering FROM current_state_resets" " WHERE ? < event_stream_ordering" " AND event_stream_ordering <= ?" " ORDER BY event_stream_ordering ASC" @@ -1143,7 +1143,7 @@ class EventsStore(SQLBaseStore): state_resets = txn.fetchall() sql = ( - "SELECT -event_stream_ordering, event_id, state_group" + "SELECT event_stream_ordering, event_id, state_group" " FROM ex_outlier_stream" " WHERE ? > event_stream_ordering" " AND event_stream_ordering >= ?" |