Commit 6fb87a7d authored by Grégory Mantelet's avatar Grégory Mantelet
Browse files

[UWS,TAP] Follow-up to the previous commit: apply the fix also for each user's

backup file.

The previous commit was only applied on the whole backup file.
parent 3441eb69
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -706,8 +706,9 @@ public class LocalUWSFileManager implements UWSFileManager {
	@Override
	@Override
	public OutputStream getBackupOutput(JobOwner owner) throws IllegalArgumentException, IOException{
	public OutputStream getBackupOutput(JobOwner owner) throws IllegalArgumentException, IOException{
		File backupFile = new File(getOwnerDirectory(owner), getBackupFileName(owner));
		File backupFile = new File(getOwnerDirectory(owner), getBackupFileName(owner));
		File tempBackupFile = new File(getOwnerDirectory(owner), getBackupFileName(owner) + ".temp-" + System.currentTimeMillis());
		createParentDir(backupFile);
		createParentDir(backupFile);
		return new FileOutputStream(backupFile);
		return new OutputStreamWithCloseAction(new FileOutputStream(tempBackupFile), new RotateFileAction(tempBackupFile, backupFile));
	}
	}


	/**
	/**