Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn-ROOT
Commits
7f656431
Commit
7f656431
authored
Jul 20, 2020
by
Volodymyr Yurchenko
Browse files
Check the file size before closing the file
TNetXNGFile requires the file to be open to be able to run any size checks
parent
90701891
Pipeline
#1808842
failed with stage
in 3 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/TJAlienFile.cxx
View file @
7f656431
...
...
@@ -503,9 +503,6 @@ void TJAlienFile::Close(Option_t * option)
{
if
(
!
IsOpen
())
return
;
// Close file
TAliceFile
::
Close
(
option
);
// If READ operation we can exit
if
(
fOption
==
"READ"
)
return
;
...
...
@@ -514,6 +511,10 @@ void TJAlienFile::Close(Option_t * option)
TString
command
(
"commit"
);
Long64_t
siz
=
GetSize
();
// Close file
TAliceFile
::
Close
(
option
);
if
(
siz
<=
0
)
{
Error
(
"Close"
,
"the reported size of the written file is <= 0"
);
return
;
...
...
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