HDDS-886. Unnecessary buffer copy in HddsDispatcher#dispatch. Contributed by Lokesh Jain.
This commit is contained in:
parent
7ccb640a66
commit
62f821115b
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue