Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
cd2c0e01
Commit
cd2c0e01
authored
Jan 29, 2020
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added error output wsrep_print_version
This helps to determinate why galera library doesn't load
parent
bc891054
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
mysql-test/lib/My/SafeProcess/wsrep_check_version.c
mysql-test/lib/My/SafeProcess/wsrep_check_version.c
+16
-5
No files found.
mysql-test/lib/My/SafeProcess/wsrep_check_version.c
View file @
cd2c0e01
/* Copyright (c) 2009, 2019, MariaDB
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
...
...
@@ -86,12 +85,24 @@ int main(int argc, char **argv)
int
rc
=
EINVAL
;
void
*
dlh
;
wsrep_loader_fun
dlfun
;
const
char
*
provider
=
getenv
(
"WSREP_PROVIDER"
);
if
(
!
(
dlh
=
dlopen
(
getenv
(
"WSREP_PROVIDER"
),
RTLD_NOW
|
RTLD_LOCAL
)))
{
goto
err
;
if
(
!
provider
)
{
fprintf
(
stderr
,
"WSREP_PROVIDER is not set
\n
"
);
goto
err
;
}
if
(
!
(
dlh
=
dlopen
(
provider
,
RTLD_NOW
|
RTLD_LOCAL
)))
{
fprintf
(
stderr
,
"Can't open WSREP_PROVIDER (%s) library, error: %s
\n
"
,
provider
,
dlerror
());
goto
err
;
}
if
(
!
(
dlfun
=
wsrep_dlf
(
dlh
,
"wsrep_loader"
)))
{
if
(
!
(
dlfun
=
wsrep_dlf
(
dlh
,
"wsrep_loader"
)))
{
fprintf
(
stderr
,
"Can't find 'wsrep_loader' symbol in %s
\n
"
,
provider
);
goto
err
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment