Fix GTID file path generation
The path would be invalid if there was no trailing slash.
This commit is contained in:
parent
0dce20e5e7
commit
51d2d6c1f2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user