Fix GTID file path generation

The path would be invalid if there was no trailing slash.
This commit is contained in:
Markus Mäkelä 2019-09-25 09:47:40 +03:00
parent 0dce20e5e7
commit 51d2d6c1f2
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -287,7 +287,7 @@ std::string to_gtid_string(const MARIADB_RPL_EVENT& event)
bool Replicator::Imp::load_gtid_state()
{
bool rval = false;
std::string filename = m_cnf.statedir + STATEFILE_NAME;
std::string filename = m_cnf.statedir + "/" + STATEFILE_NAME;
std::ifstream statefile(filename);
std::string gtid;
statefile >> gtid;