Skip to content
Snippets Groups Projects
Commit 8a93483c authored by Eric Cano's avatar Eric Cano
Browse files

Fixed failure to commit the tape's fSeq update when reporting only placeholders.

parent fb58acd7
No related branches found
Tags v0.0-176
No related merge requests found
Pipeline #32494 failed
......@@ -377,8 +377,11 @@ void OracleCatalogue::filesWrittenToTape(const std::set<TapeItemWrittenPointer>
const TapeItemWritten &lastEvent = **lastEventItor;
updateTape(conn, lastEvent.vid, lastEvent.fSeq, totalCompressedBytesWritten, lastEvent.tapeDrive);
// If we had only placeholders and no file recorded, we are done.
if (fileEvents.empty()) return;
// If we had only placeholders and no file recorded, we are done (but we still commit the update of the tape's fSeq).
if (fileEvents.empty()) {
conn.commit();
return;
}
// Create the archive file entries, skipping those that already exist
idempotentBatchInsertArchiveFiles(conn, fileEvents);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment