Skip to content

Conversation

@BurningCN
Copy link
Member

@BurningCN BurningCN commented Apr 28, 2021

Make sure set the target branch to develop

What is the purpose of the change

Optimize the code that HAClient handles the Body

for issue #2842

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 52.234% when pulling c4ee023 on BurningCN:polish_ha_code into f77d7fe on apache:develop.

@dongeforever dongeforever added the module/ha high availably related label Jan 24, 2022
this.byteBufferRead.get(bodyData);
if (bodySize > 0) {
byte[] bodyData = new byte[bodySize];
this.byteBufferRead.position(this.dispatchPosition + msgHeaderSize);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here will cause an unnecessary copy of the data.

If boySize == 0, just ignore the appendToCommitlog.

@BurningCN BurningCN closed this Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module/ha high availably related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants