fixed crash when creating a new binlog file
This commit is contained in:
parent
76afa40270
commit
414ecdfffa
|
@ -85,7 +85,7 @@ void BinLog::WriteOp(BinLogOp op, int plug, ...)
|
||||||
if (!fp)
|
if (!fp)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (g_binlog_maxsize)
|
if (g_binlog_maxsize && op != BinLog_End)
|
||||||
{
|
{
|
||||||
fseek(fp, 0, SEEK_END);
|
fseek(fp, 0, SEEK_END);
|
||||||
if (ftell(fp) > (g_binlog_maxsize * (1024 * 1024)))
|
if (ftell(fp) > (g_binlog_maxsize * (1024 * 1024)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user