Browse Source
When CommitCompact runs concurrently, it sets v.nm = nil under dataFileAccessLock. CompactByIndex does not hold that lock, so v.nm.Sync() can hit a nil pointer. Add an early nil check to return an error instead of crashing. Fixes #8591pull/8592/head
1 changed files with 3 additions and 0 deletions
Loading…
Reference in new issue