wait to read again if the volume is compacting

This commit is contained in:
Chris Lu
2019-01-05 19:52:17 -08:00
parent fe50224ea0
commit 9383c91eb1
3 changed files with 10 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ type Volume struct {
Collection string
dataFile *os.File
nm NeedleMapper
compactingWg sync.WaitGroup
needleMapKind NeedleMapType
readOnly bool