Skip to content

Commit

Permalink
Merge pull request #3689 from XiaoyiPeng/wrong_method_comment_about_t…
Browse files Browse the repository at this point in the history
…ransaction_msg

[ISSUE #3687] Fix wrong method comment about transaction message.
  • Loading branch information
francisoliverlee authored Jan 6, 2022
2 parents 18c7979 + 92bf68c commit a7b5903
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ private TopicConfig selectTopicConfig(String topic) {
* Use this function while transaction msg is committed or rollback write a flag 'd' to operation queue for the
* msg's offset
*
* @param messageExt Op message
* @param messageQueue Op message queue
* @param prepareMessage Half message
* @param messageQueue Half message queue
* @return This method will always return true.
*/
private boolean addRemoveTagInTransactionOp(MessageExt messageExt, MessageQueue messageQueue) {
private boolean addRemoveTagInTransactionOp(MessageExt prepareMessage, MessageQueue messageQueue) {
Message message = new Message(TransactionalMessageUtil.buildOpTopic(), TransactionalMessageUtil.REMOVETAG,
String.valueOf(messageExt.getQueueOffset()).getBytes(TransactionalMessageUtil.charset));
String.valueOf(prepareMessage.getQueueOffset()).getBytes(TransactionalMessageUtil.charset));
writeOp(message, messageQueue);
return true;
}
Expand Down

0 comments on commit a7b5903

Please sign in to comment.