Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn
Commits
a015dc40
Commit
a015dc40
authored
Jun 01, 2018
by
Volodymyr Yurchenko
Browse files
Save only one replica of root_archive.zip
parent
d8fdefdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/alien/ArchiveMemberDelete.java
View file @
a015dc40
...
...
@@ -255,10 +255,8 @@ public class ArchiveMemberDelete {
//
System
.
out
.
println
(
"["
+
new
Date
()
+
"] Uploading the new archive to the Grid"
);
// Create exactly the same number of replicas as the original archive had
final
int
nreplicas
=
commander
.
c_api
.
getPFNsToRead
(
remoteArchiveLFN
,
null
,
null
).
size
();
final
File
newArchive
=
new
File
(
System
.
getProperty
(
"user.dir"
)
+
System
.
getProperty
(
"file.separator"
)
+
"extracted"
+
System
.
getProperty
(
"file.separator"
)
+
archiveName
);
commander
.
c_api
.
uploadFile
(
newArchive
,
remoteArchive
+
".new"
,
"-w"
,
"-S"
,
"disk:
"
+
n
replica
s
);
commander
.
c_api
.
uploadFile
(
newArchive
,
remoteArchive
+
".new"
,
"-w"
,
"-S"
,
"disk:
1"
);
// Create only one
replica
if
(
commander
.
c_api
.
getLFN
(
remoteArchive
+
".new"
)
==
null
||
!
commander
.
c_api
.
getLFN
(
remoteArchive
+
".new"
).
exists
)
{
System
.
err
.
println
(
"["
+
new
Date
()
+
"] "
+
remoteFile
+
": Failed to upload archive "
+
remoteArchive
+
".new"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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