Skip to content
Snippets Groups Projects
Forked from Maunium / synapse
Source project has a limited visibility.
  • Richard van der Hoff's avatar
    ce428a1a
    Fix EventsStream raising assertions when it falls behind · ce428a1a
    Richard van der Hoff authored
    Figuring out how to correctly limit updates from this stream without dropping
    entries is far more complicated than just counting the number of rows being
    returned. We need to consider each query separately and, if any one query hits
    the limit, truncate the results from the others.
    
    I think this also fixes some potentially long-standing bugs where events or
    state changes could get missed if we hit the limit on either query.
    ce428a1a
    History
    Fix EventsStream raising assertions when it falls behind
    Richard van der Hoff authored
    Figuring out how to correctly limit updates from this stream without dropping
    entries is far more complicated than just counting the number of rows being
    returned. We need to consider each query separately and, if any one query hits
    the limit, truncate the results from the others.
    
    I think this also fixes some potentially long-standing bugs where events or
    state changes could get missed if we hit the limit on either query.