Commit 90701891 authored by Volodymyr Yurchenko's avatar Volodymyr Yurchenko
Browse files

Do not commit a file if it's size <= 0

parent 1cf39db3
Pipeline #1801787 failed with stage
in 5 minutes and 35 seconds
...@@ -514,8 +514,10 @@ void TJAlienFile::Close(Option_t * option) ...@@ -514,8 +514,10 @@ void TJAlienFile::Close(Option_t * option)
TString command("commit"); TString command("commit");
Long64_t siz = GetSize(); Long64_t siz = GetSize();
if (siz <= 0) if (siz <= 0) {
Error("Close", "the reported size of the written file is <= 0"); Error("Close", "the reported size of the written file is <= 0");
return;
}
command += " \""; command += " \"";
command += fAuthz; command += fAuthz;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment