1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-03 16:22:35 +03:00

codership/mariadb-wsrep#27 Galera cache encryption fixup

Fixup to enable/disable encryption on provider loading
This commit is contained in:
Alexey Yurchenko
2019-01-20 14:38:07 +02:00
parent 7e9419e811
commit 043e8bc2ea
7 changed files with 15 additions and 10 deletions

View File

@ -335,14 +335,15 @@ static int apply_toi(wsrep::provider& provider,
//////////////////////////////////////////////////////////////////////////////
int wsrep::server_state::load_provider(const std::string& provider_spec,
const std::string& provider_options)
const std::string& provider_options,
bool const encrypt)
{
wsrep::log_info() << "Loading provider "
<< provider_spec
<< "initial position: "
<< initial_position_;
provider_ = wsrep::provider::make_provider(
*this, provider_spec, provider_options);
*this, provider_spec, provider_options, encrypt);
return (provider_ ? 0 : 1);
}