Loading libs/utils/BackupData.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -193,6 +193,7 @@ BackupDataReader::Status() if ((actual) != (expected)) { \ if ((actual) == 0) { \ m_status = EIO; \ m_done = true; \ } else { \ m_status = errno; \ } \ Loading Loading @@ -222,7 +223,7 @@ BackupDataReader::ReadNextHeader(bool* done, int* type) amt = skip_padding(); if (amt == EIO) { *done = true; *done = m_done = true; return NO_ERROR; } else if (amt != NO_ERROR) { Loading Loading @@ -338,6 +339,10 @@ BackupDataReader::ReadEntityData(void* data, size_t size) m_status = errno; return -1; } if (amt == 0) { m_status = EIO; m_done = true; } m_pos += amt; return amt; } Loading Loading
libs/utils/BackupData.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -193,6 +193,7 @@ BackupDataReader::Status() if ((actual) != (expected)) { \ if ((actual) == 0) { \ m_status = EIO; \ m_done = true; \ } else { \ m_status = errno; \ } \ Loading Loading @@ -222,7 +223,7 @@ BackupDataReader::ReadNextHeader(bool* done, int* type) amt = skip_padding(); if (amt == EIO) { *done = true; *done = m_done = true; return NO_ERROR; } else if (amt != NO_ERROR) { Loading Loading @@ -338,6 +339,10 @@ BackupDataReader::ReadEntityData(void* data, size_t size) m_status = errno; return -1; } if (amt == 0) { m_status = EIO; m_done = true; } m_pos += amt; return amt; } Loading