Refactor TM handling #450
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user