Refactor TM handling #450

Merged
muellerr merged 47 commits from refactor_tm_handling into develop 2023-03-11 15:05:22 +01:00
Showing only changes of commit 3c0b8f9e8b - Show all commits

View File

@ -224,6 +224,10 @@ ReturnValue_t PersistentTmStore::loadNextDumpFile() {
dumpParams.currentSize = 0;
dumpParams.currentFileUnixStamp = fileEpoch;
std::ifstream ifile(file, std::ios::binary);
if(ifile.bad()) {
sif::error << "PersistentTmStore: File is bad" << std::endl;
continue;
}
ifile.read(reinterpret_cast<char*>(fileBuf.data()),
static_cast<std::streamsize>(dumpParams.fileSize));
break;