git-svn-id: svn://db.shs.com.ru/pip@812 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -487,13 +487,13 @@ void PIBinaryLog::parseLog(PIFile * f, PIBinaryLog::BinLogInfo * info, PIVector<
|
||||
PIByteArray ba;
|
||||
BinLogRecord br;
|
||||
bool first = true;
|
||||
llong hdr_size = sizeof(BinLogRecord) - sizeof(PIByteArray);
|
||||
size_t hdr_size = sizeof(BinLogRecord) - sizeof(PIByteArray);
|
||||
ba.resize(hdr_size);
|
||||
while (1) {
|
||||
ba.resize(hdr_size);
|
||||
{
|
||||
PIMutexLocker _ml(file_mutex);
|
||||
if (f->read(ba.data(), ba.size_s()) > 0) {
|
||||
if (f->read(ba.data(), ba.size()) > 0) {
|
||||
ba >> br.id >> br.size >> br.timestamp;
|
||||
} else
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user