mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 10:17:24 +08:00
volume: handling readonly volumes after compaction
ensure readonly volumes are not added as writable
This commit is contained in:
@@ -5,9 +5,10 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/chrislusf/seaweedfs/weed/storage/needle"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"github.com/chrislusf/seaweedfs/weed/storage/needle"
|
||||
|
||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||
"github.com/chrislusf/seaweedfs/weed/operation"
|
||||
"github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
|
||||
@@ -105,7 +106,9 @@ func batchVacuumVolumeCommit(grpcDialOption grpc.DialOption, vl *VolumeLayout, v
|
||||
} else {
|
||||
glog.V(0).Infof("Complete Committing vacuum %d on %s", vid, dn.Url())
|
||||
}
|
||||
if isCommitSuccess {
|
||||
}
|
||||
if isCommitSuccess {
|
||||
for _, dn := range locationlist.list {
|
||||
vl.SetVolumeAvailable(dn, vid)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user