-
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.
MON-103295 default mariadb plugins directory is configurable and set …
…by default according to the os (#1421) * default mariadb plugins directory is configurable and set by default according to the os * fix previous rebase issue * no lib mariadb static link * fix test REFS:MON-103295
- Loading branch information
1 parent
b884078
commit 1ea67d2
Showing
20 changed files
with
118 additions
and
65 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
Oops, something went wrong.