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(tianmu):(Primary/Secondary)Error 1032 occasionally occurs during … #1469

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

konghaiya
Copy link
Collaborator

@konghaiya konghaiya commented Mar 23, 2023

…primary/secondary synchronization if UUIDs are used as the primary key(#1464)

Cause of the problem:
When performing a primary key scan under the master slave, "ha_tianmu:: position()" is called first to obtain the primary key value from the "record", However, in this scenario, after calling the "key_copy()" function, the "record" will be cleared, resulting in the subsequent "GetKeys()" obtaining a null primary key value. Solution:
Because the value "handler->ref" is not used in the future, you can simply delete the call to "key_copy()".

Summary about this PR

Issue Number: close #1464

Tests Check List

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Changelog

  • New Feature
  • Bug Fix
  • Performance Improvement
  • Build/Testing/CI/CD
  • Documentation
  • Not for changelog (changelog entry is not required)

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features

…primary/secondary synchronization if UUIDs are used as the primary key(stoneatom#1464)

Cause of the problem:
When performing a primary key scan under the master slave, "ha_tianmu:: position()" is called first to obtain the primary key value from the "record",
However, in this scenario, after calling the "key_copy()" function, the "record" will be cleared, resulting in the subsequent "GetKeys()" obtaining a null primary key value.
Solution:
Because the value "handler->ref" is not used in the future, you can simply delete the call to "key_copy()".
@mergify
Copy link
Contributor

mergify bot commented Mar 23, 2023

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the PR-bug bug for pull request label Mar 23, 2023
@mergify mergify bot merged commit 05db04d into stoneatom:stonedb-5.7-dev Mar 23, 2023
@Nliver Nliver added this to the StoneDB_5.7_v1.0.4 milestone Apr 15, 2023
@konghaiya konghaiya deleted the dev_lhj_1464 branch April 18, 2023 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-bug bug for pull request
Projects
4 participants