Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVED] Do not load blocks when calling LoadNextMsg for the first time after restart or long inactivity #4969

Merged
merged 1 commit into from Jan 18, 2024

Conversation

derekcollison
Copy link
Member

If LoadNextMsg was called with start sequence == FirstSeq, we would walk all blocks, which if fss was loaded we could skip fairly quickly. However on a restart or no activity past a sync interval this could cause memory blocks to be loaded in just to be skipped.

#4906

Signed-off-by: Derek Collison derek@nats.io

…ll be at the beginning of the stream. We would walk all blocks, which if fss was loaded we could skip fairly quickly. However on a restart this could cause memory blocks to be loaded in just to be skipped.

Signed-off-by: Derek Collison <derek@nats.io>
@derekcollison derekcollison requested a review from a team as a code owner January 18, 2024 00:37
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants