Skip to content

Cleanup: fixing buffer reuse issues and log statements#400

Merged
fulghum merged 2 commits intomainfrom
fulghum/buffer_cleanup
Mar 3, 2025
Merged

Cleanup: fixing buffer reuse issues and log statements#400
fulghum merged 2 commits intomainfrom
fulghum/buffer_cleanup

Conversation

@fulghum
Copy link

@fulghum fulghum commented Mar 3, 2025

No description provided.

@fulghum fulghum requested a review from zachmu as a code owner March 3, 2025 20:40
@fulghum fulghum force-pushed the fulghum/buffer_cleanup branch from dcbcb5d to 8102050 Compare March 3, 2025 21:13
@fulghum fulghum requested a review from reltuk March 3, 2025 21:27
Copy link

@reltuk reltuk left a comment

Choose a reason for hiding this comment

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

LGTM! When I was here before, I looked at ComRegisterReplica and ComBinlogDumpGTID and they both looked safe to me, but it doesn't hurt to remove the recycle here either.

@fulghum
Copy link
Author

fulghum commented Mar 3, 2025

LGTM! When I was here before, I looked at ComRegisterReplica and ComBinlogDumpGTID and they both looked safe to me, but it doesn't hurt to remove the recycle here either.

Yeah, I think those buffers were fine, too, but seemed inconsistent with all the other calls to c.recycleReadPacket() being directly in the c.handleNextCommand() function.

@fulghum fulghum merged commit 5cc89c1 into main Mar 3, 2025
4 checks passed
@fulghum fulghum deleted the fulghum/buffer_cleanup branch March 3, 2025 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants