Fix: remove the oversized state after compaction

This commit is contained in:
LIBA-S
2020-09-22 21:31:14 +08:00
parent d7bf2390e2
commit 8573ac82c6
3 changed files with 218 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
}