Skip to content

Commit

Permalink
fix setTxnidMostBits bug (apache#5743)
Browse files Browse the repository at this point in the history
In TypedMessageBuilderImpl::beforeSend function, when setting TxnIdMostBits field of msgMetadataBuilder, it sets into TxnidLeastBits field and override the original TxnIdLeastBits value.
  • Loading branch information
hangc0276 authored and jiazhai committed Nov 26, 2019
1 parent de2ff6b commit 48506e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private long beforeSend() {
return -1L;
}
msgMetadataBuilder.setTxnidLeastBits(txn.getTxnIdLeastBits());
msgMetadataBuilder.setTxnidLeastBits(txn.getTxnIdMostBits());
msgMetadataBuilder.setTxnidMostBits(txn.getTxnIdMostBits());
long sequenceId = txn.nextSequenceId();
msgMetadataBuilder.setSequenceId(sequenceId);
return sequenceId;
Expand Down

0 comments on commit 48506e5

Please sign in to comment.