mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:06:08 -04:00
Merge branch 'develop' into storage_transactions
Conflicts: synapse/handlers/room.py synapse/storage/stream.py
This commit is contained in:
commit
2aeaa7b77c
23 changed files with 723 additions and 642 deletions
|
@ -174,7 +174,7 @@ class StreamStore(SQLBaseStore):
|
|||
"SELECT * FROM events as e WHERE "
|
||||
"((room_id IN (%(current)s)) OR "
|
||||
"(event_id IN (%(invites)s))) "
|
||||
"AND e.stream_ordering > ? AND e.stream_ordering < ? "
|
||||
"AND e.stream_ordering > ? AND e.stream_ordering <= ? "
|
||||
"AND e.outlier = 0 "
|
||||
"ORDER BY stream_ordering ASC LIMIT %(limit)d "
|
||||
) % {
|
||||
|
@ -296,5 +296,5 @@ class StreamStore(SQLBaseStore):
|
|||
if not res or not res[0] or not res[0]["m"]:
|
||||
return "s1"
|
||||
|
||||
key = res[0]["m"] + 1
|
||||
key = res[0]["m"]
|
||||
return "s%d" % (key,)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue