Repository navigation
Conversation
Silently raise such a search_buffer_capacity to search_window_size. This PR changes the API by removing the public SearchBufferConfig constructor that bypassed check_invariants (which was not supposed to be public) and the public check_invariants method (which is now superfluous). They are not used in Redis.
|
It's expected that the C++ runtime bindings test will fail when compiling from the static library, because that has the old behavior. |
| constexpr SearchBufferConfig() = default; | ||
|
|
||
| SearchBufferConfig( | ||
| BypassInvariantCheckTag, size_t search_window_size, size_t total_capacity |
There was a problem hiding this comment.
It seems to conflict with #486, which reject capacity < window?
There was a problem hiding this comment.
It can be seen as a conflict, indeed.
I see this PR as generally accepting capacity < window in all cases, like when build parameters are superseded by search parameters with only a search window size larger than the build parameters capacity. Basically, this PR makes it easier to change the window without considering capacity.
Instead, PR #486 rejects capacity < window only when explicitly setting the capacity. If the client wants a specific capacity, the explicit setting should not succeed. If you see it differently, we can change it.
Silently raise such a search_buffer_capacity to search_window_size.
This PR changes the API by removing the public SearchBufferConfig constructor that bypassed check_invariants (which was not supposed to be public) and the public check_invariants method (which is now superfluous). They are not used in Redis.