-
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.
* default mariadb plugins directory is configurable and set by default according to the os * no lib mariadb static link REFS: MON-120715
- Loading branch information
1 parent
dc90889
commit 4c16f99
Showing
22 changed files
with
77 additions
and
28 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
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 |
---|---|---|
|
@@ -14,7 +14,8 @@ | |
* limitations under the License. | ||
* | ||
* For more information : [email protected] | ||
*/ | ||
*/ | ||
|
||
#include <errmsg.h> | ||
|
||
#include "com/centreon/broker/config/applier/init.hh" | ||
|
@@ -190,6 +191,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()), | ||
|
@@ -837,6 +841,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, | ||
|
@@ -1081,6 +1088,7 @@ mysql_connection::mysql_connection(const database_config& db_cfg, | |
_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
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