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

Mariadb4.x galera ps API v2 #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sysprg
Copy link

@sysprg sysprg commented Jun 22, 2021

This is a prototype of a new implementation of the interface to support performance schema tables in MariaDB, which does not require changes to the wsrep-API as it uses the wsrep service architecture, similar to the service for TLS.

Copy link

@janlindstrom janlindstrom left a comment

Choose a reason for hiding this comment

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

In my opinion this looks good. I had only a very minor comments so you can if so choose ignore them and please send this to review for Teemu Ollakka.

wsrep::ps_service* ps_service)
{
assert(ps_service);
if (not wsrep::ps_service_v1_probe(dlh))

Choose a reason for hiding this comment

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

I have not seen this before, does this compile in our old compilers?

Copy link
Author

Choose a reason for hiding this comment

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

fixed


static void deinit_ps_service(void* dlh)
{
// assert(not wsrep::ps_service_v1_probe(dlh));

Choose a reason for hiding this comment

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

Please remove commented code lines, why this would not hold here?

int wsrep::ps_service_v1_init(void* dlh,
wsrep::ps_service* ps_service)
{
if (not (dlh && ps_service)) return EINVAL;

Choose a reason for hiding this comment

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

Why not instead of ! ?

Copy link
Author

Choose a reason for hiding this comment

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

fixed

This commit adds support for Performanche Schema tables
for Galera using the new Pefrormance Schema (ps) service.
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