Revert "Merge pull request #1479 from LIBA-S/fix_oversized"

This reverts commit bd11f0b3e4, reversing
changes made to ec5b9f1e91.
This commit is contained in:
Chris Lu
2020-09-22 15:05:37 -07:00
parent 4a1fe4b8e2
commit 3e52329cee
3 changed files with 15 additions and 218 deletions

View File

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