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:
MassimilianoPinto 2016-02-01 09:12:48 +01:00
parent d9b022db10
commit 0ab9733393

View File

@ -488,7 +488,7 @@ struct stat statb;
if (strcmp(router->binlog_name, file->binlogname) == 0 &&
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. "
"Latest safe position %lu, end of binlog file %lu",