From 2b82d0f8717f4a27c1bb7c50eb0f90780c9c8f96 Mon Sep 17 00:00:00 2001 From: wusong <75450248+wusongANKANG@users.noreply.github.com> Date: Fri, 31 Mar 2023 22:36:21 +0800 Subject: [PATCH] style: clerical error (#4361) --- weed/server/master_grpc_server_volume.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/weed/server/master_grpc_server_volume.go b/weed/server/master_grpc_server_volume.go index 06dbb4bb5..a2676accf 100644 --- a/weed/server/master_grpc_server_volume.go +++ b/weed/server/master_grpc_server_volume.go @@ -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 {