mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:56:02 -04:00
Improve log messages for stream ids (#11536)
Somehow I'd managed to get my database in a pickle with stream ids. These changes were useful to debug.
This commit is contained in:
parent
8541809cb9
commit
ff7cc17b57
3 changed files with 7 additions and 4 deletions
|
@ -56,7 +56,9 @@ class StateDeltasStore(SQLBaseStore):
|
|||
prev_stream_id = int(prev_stream_id)
|
||||
|
||||
# check we're not going backwards
|
||||
assert prev_stream_id <= max_stream_id
|
||||
assert (
|
||||
prev_stream_id <= max_stream_id
|
||||
), f"New stream id {max_stream_id} is smaller than prev stream id {prev_stream_id}"
|
||||
|
||||
if not self._curr_state_delta_stream_cache.has_any_entity_changed(
|
||||
prev_stream_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue