mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-09 07:47:54 +02:00
volume: lock writables changes
This commit is contained in:
1 parent
fd16adbde1
commit
4b15c8f0c4
1 file changed
+3
@@ -46,7 +46,10 @@ func batchVacuumVolumeCheck(grpcDialOption grpc.DialOption, vl *VolumeLayout, vi
|
||||
return isCheckSuccess
|
||||
}
|
||||
func batchVacuumVolumeCompact(grpcDialOption grpc.DialOption, vl *VolumeLayout, vid needle.VolumeId, locationlist *VolumeLocationList, preallocate int64) bool {
|
||||
vl.accessLock.Lock()
|
||||
vl.removeFromWritable(vid)
|
||||
vl.accessLock.Unlock()
|
||||
|
||||
ch := make(chan bool, locationlist.Length())
|
||||
for index, dn := range locationlist.list {
|
||||
go func(index int, url string, vid needle.VolumeId) {
|
||||
|
||||
Reference in new issue
Block a user