-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPROVED] Do not hold filestore lock on msg block loads for firstSeq…
…ForSubj. (#5363) In cases where max per subject is utilized, once that condition is hit storing a new message involves writing the new one, flushing it, then determining the current first seq for the subject so we can remove it. Determining the first sequence for the subject could involve walking multiple blocks and loading them in as well, all while the filestore lock is being held causing delays for other access to the filestore, even for things like FastState(). Signed-off-by: Derek Collison <derek@nats.io>
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 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