Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
6e740cce
Commit
6e740cce
authored
Apr 05, 2019
by
Eric Cano
Browse files
Fixed failure to commit tape update (port of previous commit to Postgres)
parent
e1bd8bf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
catalogue/PostgresCatalogue.cpp
View file @
6e740cce
...
...
@@ -360,8 +360,11 @@ void PostgresCatalogue::filesWrittenToTape(const std::set<TapeItemWrittenPointer
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
// However we don't currently lock existing rows, so this transaction may
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment