summary refs log tree commit diff
path: root/changelog.d/6187.bugfix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 1.5.0rc1Andrew Morgan2019-10-241-1/+0
|
* Fix races in room stats (and other) updates. (#6187)Richard van der Hoff2019-10-101-0/+1
Hopefully this will fix the occasional failures we were seeing in the room directory. The problem was that events are not necessarily persisted (and `current_state_delta_stream` updated) in the same order as their stream_id. So for instance current_state_delta 9 might be persisted *before* current_state_delta 8. Then, when the room stats saw stream_id 9, it assumed it had done everything up to 9, and never came back to do stream_id 8. We can solve this easily by only processing up to the stream_id where we know all events have been persisted.