Readyset is a MySQL and Postgres wire-compatible caching layer that sits in front of existing databases to speed up queries and horizontally scale read throughput. Under the hood, ReadySet caches the results of cached select statements and incrementally updates these results over time as the underlying data changes.
57872b449 fixed a couple of bugs present in the views synchronizer. As
part of that work, a new "cache" was added to the views synchronizer to
keep track of which queries in the query status cache have already had
their views synchronized with the server. However, this commit
also introduced a bug: instead of looking for views for the queries that
we haven't yet checked, the views synchronizer was looking for views
only for the queries for which we already synchronized views.
This commit fixes the issue by reversing the boolean logic.
57872b449 fixed a couple of bugs present in the views synchronizer. As part of that work, a new "cache" was added to the views synchronizer to keep track of which queries in the query status cache have already had their views synchronized with the server. However, this commit also introduced a bug: instead of looking for views for the queries that we haven't yet checked, the views synchronizer was looking for views only for the queries for which we already synchronized views.
This commit fixes the issue by reversing the boolean logic.