Need to skip the padding after reading.

m_dataEndPos points to the end of the data, not the beginning
of the next entity.
This commit is contained in:
Joe Onorato 2009-07-13 14:44:07 -07:00 committed by Alex Ray
parent de6926bc94
commit c18deadb84
1 changed files with 5 additions and 3 deletions

View File

@ -298,10 +298,12 @@ BackupDataReader::SkipEntityData()
}
if (m_header.entity.dataSize > 0) {
int pos = lseek(m_fd, m_dataEndPos, SEEK_SET);
return pos == -1 ? (int)errno : (int)NO_ERROR;
} else {
return NO_ERROR;
if (pos == -1) {
return errno;
}
}
SKIP_PADDING();
return NO_ERROR;
}
ssize_t