Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Postgres stream processing #5367

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

oeyh
Copy link
Collaborator

@oeyh oeyh commented Jan 28, 2025

Description

Fix a few issues in Postgres stream processing following #5310

Issues Resolved

N/A

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Hai Yan <[email protected]>
@@ -158,7 +158,7 @@ void processRelationMessage(ByteBuffer msg) {
}

void processCommitMessage(ByteBuffer msg) {
int flag = msg.getInt();
int flag = msg.get();
Copy link
Contributor

Choose a reason for hiding this comment

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

Any particular reason why we are using get and not getInt() here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

get() gets the next byte. getInt() gets the next 4 bytes. This flag has only one byte.

@oeyh oeyh merged commit 8f384dc into opensearch-project:main Jan 29, 2025
44 of 47 checks passed
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.

3 participants