-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* no native mysql authent * default mariadb plugins directory is configurable and set by default according to the os * no lib mariadb static link REFS:MON-120717
- Loading branch information
1 parent
2ae7a55
commit e739aff
Showing
17 changed files
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* | ||
* For more information : [email protected] | ||
*/ | ||
#include <mysql/errmsg.h> | ||
#include <errmsg.h> | ||
|
||
#include "com/centreon/broker/config/applier/init.hh" | ||
#include "com/centreon/broker/misc/misc.hh" | ||
|
@@ -190,6 +190,9 @@ bool mysql_connection::_try_to_reconnect() { | |
uint32_t timeout = 10; | ||
mysql_options(_conn, MYSQL_OPT_CONNECT_TIMEOUT, &timeout); | ||
|
||
mysql_optionsv(_conn, MYSQL_PLUGIN_DIR, | ||
(const void*)_extension_directory.c_str()); | ||
|
||
if (!mysql_real_connect(_conn, _host.c_str(), _user.c_str(), _pwd.c_str(), | ||
_name.c_str(), _port, | ||
(_socket == "" ? nullptr : _socket.c_str()), | ||
|
@@ -830,6 +833,9 @@ void mysql_connection::_run() { | |
uint32_t timeout = 10; | ||
mysql_options(_conn, MYSQL_OPT_CONNECT_TIMEOUT, &timeout); | ||
|
||
mysql_optionsv(_conn, MYSQL_PLUGIN_DIR, | ||
(const void*)_extension_directory.c_str()); | ||
|
||
while (config::applier::mode != config::applier::finished && | ||
!mysql_real_connect(_conn, _host.c_str(), _user.c_str(), | ||
_pwd.c_str(), _name.c_str(), _port, | ||
|
@@ -1076,6 +1082,7 @@ mysql_connection::mysql_connection( | |
_pwd(db_cfg.get_password()), | ||
_name(db_cfg.get_name()), | ||
_port(db_cfg.get_port()), | ||
_extension_directory(db_cfg.get_extension_directory()), | ||
_max_second_commit_delay(db_cfg.get_max_commit_delay()), | ||
_last_commit(db_cfg.get_queries_per_transaction() > 1 | ||
? 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
"cxx17" | ||
] | ||
}, | ||
"libmariadb", | ||
"libssh2", | ||
"curl", | ||
"fmt", | ||
|