HDDS-886. Unnecessary buffer copy in HddsDispatcher#dispatch. Contributed by Lokesh Jain.

This commit is contained in:
Yiqun Lin 2018-11-30 22:57:29 +08:00
parent 7ccb640a66
commit 62f821115b
1 changed files with 1 additions and 1 deletions

View File

@ -134,9 +134,9 @@ public class HddsDispatcher implements ContainerDispatcher, Auditor {
@Override @Override
public ContainerCommandResponseProto dispatch( public ContainerCommandResponseProto dispatch(
ContainerCommandRequestProto msg) { ContainerCommandRequestProto msg) {
Preconditions.checkNotNull(msg);
LOG.trace("Command {}, trace ID: {} ", msg.getCmdType().toString(), LOG.trace("Command {}, trace ID: {} ", msg.getCmdType().toString(),
msg.getTraceID()); msg.getTraceID());
Preconditions.checkNotNull(msg.toString());
AuditAction action = ContainerCommandRequestPBHelper.getAuditAction( AuditAction action = ContainerCommandRequestPBHelper.getAuditAction(
msg.getCmdType()); msg.getCmdType());