Fix GTID file path generation
The path would be invalid if there was no trailing slash.
This commit is contained in:
@ -287,7 +287,7 @@ std::string to_gtid_string(const MARIADB_RPL_EVENT& event)
|
|||||||
bool Replicator::Imp::load_gtid_state()
|
bool Replicator::Imp::load_gtid_state()
|
||||||
{
|
{
|
||||||
bool rval = false;
|
bool rval = false;
|
||||||
std::string filename = m_cnf.statedir + STATEFILE_NAME;
|
std::string filename = m_cnf.statedir + "/" + STATEFILE_NAME;
|
||||||
std::ifstream statefile(filename);
|
std::ifstream statefile(filename);
|
||||||
std::string gtid;
|
std::string gtid;
|
||||||
statefile >> gtid;
|
statefile >> gtid;
|
||||||
|
Reference in New Issue
Block a user