Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
7be08367
Commit
7be08367
authored
13 years ago
by
kaloyane
Browse files
Options
Downloads
Patches
Plain Diff
minor: log more information when moving data set files
SVN: 23345
parent
9ad2dc46
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/MoveFileCommand.java
+3
-6
3 additions, 6 deletions
...sd/etlserver/registrator/api/v1/impl/MoveFileCommand.java
with
3 additions
and
6 deletions
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v1/impl/MoveFileCommand.java
+
3
−
6
View file @
7be08367
...
@@ -20,8 +20,7 @@ import java.io.File;
...
@@ -20,8 +20,7 @@ import java.io.File;
import
java.io.IOException
;
import
java.io.IOException
;
import
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
;
import
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
;
import
ch.systemsx.cisd.common.filesystem.FileOperations
;
import
ch.systemsx.cisd.etlserver.FileRenamer
;
import
ch.systemsx.cisd.common.filesystem.IFileOperations
;
/**
/**
* Does a move if the destination is an existing directory, a rename otherwise.
* Does a move if the destination is an existing directory, a rename otherwise.
...
@@ -60,8 +59,7 @@ public class MoveFileCommand extends AbstractTransactionalCommand
...
@@ -60,8 +59,7 @@ public class MoveFileCommand extends AbstractTransactionalCommand
throw
new
IOExceptionUnchecked
(
checkedException
);
throw
new
IOExceptionUnchecked
(
checkedException
);
}
}
IFileOperations
fileOperations
=
FileOperations
.
getMonitoredInstanceForCurrentThread
();
FileRenamer
.
renameAndLog
(
src
,
dst
);
fileOperations
.
move
(
src
,
dst
);
}
}
public
void
rollback
()
public
void
rollback
()
...
@@ -83,8 +81,7 @@ public class MoveFileCommand extends AbstractTransactionalCommand
...
@@ -83,8 +81,7 @@ public class MoveFileCommand extends AbstractTransactionalCommand
return
;
return
;
}
}
IFileOperations
fileOperations
=
FileOperations
.
getMonitoredInstanceForCurrentThread
();
FileRenamer
.
renameAndLog
(
dst
,
src
);
fileOperations
.
move
(
dst
,
src
);
}
}
@Override
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment