Merge pull request #1485 from LIBA-S/fix_oversized

Correct the oversized state of volume after compaction
This commit is contained in:
Chris Lu
2020-09-23 19:24:30 -07:00
committed by GitHub
3 changed files with 223 additions and 15 deletions

View File

@@ -172,10 +172,10 @@ func vacuumOneVolumeLayout(grpcDialOption grpc.DialOption, volumeLayout *VolumeL
for vid, locationList := range tmpMap {
volumeLayout.accessLock.RLock()
isReadOnly, hasValue := volumeLayout.readonlyVolumes[vid]
isReadOnly := volumeLayout.readonlyVolumes.IsTrue(vid)
volumeLayout.accessLock.RUnlock()
if hasValue && isReadOnly {
if isReadOnly {
continue
}