Ptubes is a database disaster recovery product based on the PITR (Point In Time Recovery) method, which can be used to restore the entire database to a specific point in time to help users improve the reliability and security of the database
In BinlogContextParser, there are two context variables that should be thread-private, but they are shared during processing, causing concurrency problems. This modification gives them a clone
Verify this change
[x] Make sure there is a GitHub_issue field for changes (usually before you start working on it). Trivial changes like spelling mistakes do not require GitHub issues. Your pull request should only address this issue and no other changes - one PR addresses one issue.
[x] Every commit in a pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write the necessary unit tests to verify your logic corrections, mocks work better when there are cross-module dependencies.
What is the purpose of the change
bug fix https://github.com/meituan/ptubes/issues/2
Brief Changelog
In BinlogContextParser, there are two context variables that should be thread-private, but they are shared during processing, causing concurrency problems. This modification gives them a clone
Verify this change