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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user