mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-12 05:14:19 -05:00
Fix bug where we sometimes set min_token to None.
This commit is contained in:
parent
234128586b
commit
840771190f
@ -176,7 +176,8 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||||||
"SELECT MIN(stream_ordering) FROM events"
|
"SELECT MIN(stream_ordering) FROM events"
|
||||||
)
|
)
|
||||||
|
|
||||||
self.min_token = min(row[0][0], -1) if row and row[0] else -1
|
self.min_token = row[0][0] if row and row[0] and row[0][0] else -1
|
||||||
|
self.min_token = min(self.min_token, -1)
|
||||||
|
|
||||||
logger.debug("min_token is: %s", self.min_token)
|
logger.debug("min_token is: %s", self.min_token)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user