Skip to content
Snippets Groups Projects
Commit 7be08367 authored by kaloyane's avatar kaloyane
Browse files

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
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment