Skip to content

Commit

Permalink
style: clerical error (seaweedfs#4361)
Browse files Browse the repository at this point in the history
  • Loading branch information
wusongANKANG authored Mar 31, 2023
1 parent 8e80ce9 commit 2b82d0f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions weed/server/master_grpc_server_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,7 @@ func (ms *MasterServer) VolumeMarkReadonly(ctx context.Context, req *master_pb.V
replicaPlacement, _ := super_block.NewReplicaPlacementFromByte(byte(req.ReplicaPlacement))
vl := ms.Topo.GetVolumeLayout(req.Collection, replicaPlacement, needle.LoadTTLFromUint32(req.Ttl), types.ToDiskType(req.DiskType))
dataNodes := ms.Topo.Lookup(req.Collection, needle.VolumeId(req.VolumeId))
if req.IsReadonly {
for _, dn := range dataNodes {
if dn.Ip == req.Ip && dn.Port == int(req.Port) {

}
}
}
for _, dn := range dataNodes {
if dn.Ip == req.Ip && dn.Port == int(req.Port) {
if req.IsReadonly {
Expand Down

0 comments on commit 2b82d0f

Please sign in to comment.