You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: race condition in dual indexing causing system freeze
ResumeIndexingOnConnect and DetectContext auto-trigger could both call
StartIndexingAsync for the same workspace simultaneously, bypassing the
LoadOrStore dedup guard via TOCTOU race window.
Changes:
- ResumeIndexingOnConnect now marks connectTriggered before StartIndexingAsync
- Removed redundant indexingJobs.Load check from DetectContext (TOCTOU)
- Changed 'go e.StartIndexingAsync(...)' to direct call (goroutine created internally)
Fixes system freeze when indexing large workspaces (~5000+ files).
0 commit comments