Skip to content

Commit

Permalink
Fix the problem in constructing the GetMessageResult
Browse files Browse the repository at this point in the history
  • Loading branch information
guyinyou committed Oct 12, 2023
1 parent 7e4879a commit f10f792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ private RemotingCommand processRequest(final Channel channel, RemotingCommand re
}
int randomQ = random.nextInt(100);
int reviveQid = randomQ % this.brokerController.getBrokerConfig().getReviveQueueNum();
int commercialSizePerMsg = this.brokerController.getBrokerConfig().getCommercialSizePerMsg();
GetMessageResult getMessageResult = new GetMessageResult(commercialSizePerMsg);
GetMessageResult getMessageResult = new GetMessageResult();
boolean needRetry = randomQ % 5 == 0;
long popTime = System.currentTimeMillis();
long restNum = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,7 @@ public RemotingCommand processRequest(final ChannelHandlerContext ctx, RemotingC
reviveQid = (int) Math.abs(ckMessageNumber.getAndIncrement() % this.brokerController.getBrokerConfig().getReviveQueueNum());
}

int commercialSizePerMsg = this.brokerController.getBrokerConfig().getCommercialSizePerMsg();
GetMessageResult getMessageResult = new GetMessageResult(commercialSizePerMsg);
GetMessageResult getMessageResult = new GetMessageResult();
ExpressionMessageFilter finalMessageFilter = messageFilter;
StringBuilder finalOrderCountInfo = orderCountInfo;

Expand Down

0 comments on commit f10f792

Please sign in to comment.