Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.2.3
-
mariadb-10.2.3
Description
When we use BINLOG_GTID_POS to get gtid from binlog file/position ,it call the function to get gtid(in sql_repl.cc):
gtid_state_from_pos:
|
.......
|
if ({color:red}gtid_state->load((const rpl_gtid *)NULL, 0){color})
|
{
|
errormsg= "Internal error (out of memory?) initializing slave state "
|
"while scanning binlog to find start position";
|
return errormsg;
|
}
|
But ,the function gtid_state->load((const rpl_gtid *)NULL, 0) is always true (because count==0):
int slave_connection_state::load(const rpl_gtid *gtid_list, uint32 count)
|
{
|
uint32 i;
|
reset();
|
for (i= 0; i < count; ++i)
|
if (update(>id_list[i]))
|
return 1;
|
return 0;
|
}
|
Why we need this ??