Browse Source

fix nil

pull/1650/head
Chris Lu 4 years ago
parent
commit
003b6245e7
  1. 2
      weed/topology/topology_vacuum.go

2
weed/topology/topology_vacuum.go

@ -108,7 +108,7 @@ func batchVacuumVolumeCommit(grpcDialOption grpc.DialOption, vl *VolumeLayout, v
resp, err := volumeServerClient.VacuumVolumeCommit(context.Background(), &volume_server_pb.VacuumVolumeCommitRequest{
VolumeId: uint32(vid),
})
if resp.IsReadOnly {
if resp != nil && resp.IsReadOnly {
isReadOnly = true
}
return err

Loading…
Cancel
Save