Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xapi_message: Fix incorrect slow path invocation (and its logs) (xapi…
…-project#6147) `get_since_for_events` checks if the cache contains entries older than the 'since' timepoint requested. If so, this means the cache contains all entries strictly after (`>`) 'since'. If not, this means the cache needs to be reconstructed, since some entries strictly after (`>`) 'since' might be just out of cache. Previous code would reconstruct the cache when the oldest entry in the cache was equal to the 'since' timepoint requested, which is incorrect and caused a deluge of "x is older than x itself" in the logs. So, change the check for 'entries older than the since timestamp' to be less-or-equal (as the opposite of 'strictly after'), and clarify the debug message.
- Loading branch information