The router->rotating is no longer part of Unsafe Pos check
In blr_read_binlog the router->rotating is no longer used for Unsafe Pos check
This commit is contained in:
@ -488,7 +488,7 @@ struct stat statb;
|
|||||||
if (strcmp(router->binlog_name, file->binlogname) == 0 &&
|
if (strcmp(router->binlog_name, file->binlogname) == 0 &&
|
||||||
pos >= router->binlog_position)
|
pos >= router->binlog_position)
|
||||||
{
|
{
|
||||||
if (pos > router->binlog_position && !router->rotating)
|
if (pos > router->binlog_position)
|
||||||
{
|
{
|
||||||
snprintf(errmsg, BINLOG_ERROR_MSG_LEN, "Requested binlog position %lu is unsafe. "
|
snprintf(errmsg, BINLOG_ERROR_MSG_LEN, "Requested binlog position %lu is unsafe. "
|
||||||
"Latest safe position %lu, end of binlog file %lu",
|
"Latest safe position %lu, end of binlog file %lu",
|
||||||
|
|||||||
Reference in New Issue
Block a user