Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED] Stream / KV lookups fail after decreasing history size. (#4656)
Fixed a bug that was not correctly selecting next first because it was not properly skipping new dbit entries. This could result in lookups failing, e.g. after a change in max msgs per subject to a lower value. Also fixed a bug that would not properly update our psim during compact when throwing away the whole block and a subject had more than one message. Signed-off-by: Derek Collison <derek@nats.io> Resolves: #4643
- Loading branch information
Showing
3 changed files
with
115 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters