Skip to content

Commit

Permalink
AddBroker removes parsing configuration from body (#7472)
Browse files Browse the repository at this point in the history
  • Loading branch information
RongtongJin authored Oct 18, 2023
1 parent d73b601 commit 82b2f8e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ private synchronized RemotingCommand addBroker(ChannelHandlerContext ctx,
LOGGER.error("addBroker load config from {} failed, {}", configPath, e);
}
} else {
byte[] body = request.getBody();
if (body != null) {
String bodyStr = new String(body, MixAll.DEFAULT_CHARSET);
brokerProperties = MixAll.string2Properties(bodyStr);
}
LOGGER.error("addBroker config path is empty");
response.setCode(ResponseCode.SYSTEM_ERROR);
response.setRemark("addBroker config path is empty");
return response;
}

if (brokerProperties == null) {
Expand Down

0 comments on commit 82b2f8e

Please sign in to comment.