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

Do not show GTID in trace queries when the option is ON #150

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

noname0443
Copy link
Collaborator

@noname0443 noname0443 commented Dec 13, 2024

Do not show GTID in trace queries when the option is ON

@noname0443 noname0443 changed the title Show only GTID diff in trace queries when the option is ON Do not show GTID diff in trace queries when the option is ON Dec 13, 2024
@noname0443 noname0443 changed the title Do not show GTID diff in trace queries when the option is ON Do not show GTID in trace queries when the option is ON Dec 13, 2024
var GtidQueries = []string{
DefaultQueries[queryGTIDExecuted],
strings.ReplaceAll(DefaultQueries[querySlaveStatus], ":channel", "''"),
strings.ReplaceAll(DefaultQueries[queryReplicaStatus], ":channel", ""),
Copy link

Choose a reason for hiding this comment

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

Shouldn't this ReplaceAll's arguments too include "''", instead of "", similar to the line above?

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