-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
seg: set stale files not visible until recalcVisibleFiles done #12396
base: main
Are you sure you want to change the base?
Conversation
FYI: seems i trying something similar: #12380 |
@AskAlexSharov Got it. one thing special in this PR is i try to keep I add an indicator |
I don’t understand how it can be called from multiple goroutines. In my head 2parts 2: Atomics guarantee that all goroutines (and there can’t be new readers because point 1). |
what I'm thinking here is exactly point1, canDelete==true seems not enough. assuming two consecutive readers read segX during merge:
|
merge itself is also reader You right - we can make sure that we set
(it happening inside |
thanks, you're correct about merge, i will work on point3 later |
Auite a lot of changes landed in: #12339 |
No description provided.