diff options
author | Keuin <[email protected]> | 2021-01-24 20:10:58 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2021-01-24 20:12:32 +0800 |
commit | 3648d0ca94c9954fa7c4797ce64a0f42a4f837b5 (patch) | |
tree | 5695765f92bb6eeca4ab8bde36f6485dc722fb60 /src/main/java/com | |
parent | cc2b5aac3a99dd45b55a701efd4b6c206a21b237 (diff) |
BugFix: incremental backup shows incorrect file count and size.
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java b/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java index 9060d88..be01966 100644 --- a/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java +++ b/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java @@ -55,8 +55,7 @@ public class IncrementalBackupStorageManager { // element does not exist. copy. Files.copy(copySourceFile.toPath(), copyDestination.toPath()); copyCount = copyCount.addWith(new IncCopyResult(1, 1, fileBytes, fileBytes)); - } - { + } else { // element exists (file reused). Just update the stat info copyCount = copyCount.addWith(new IncCopyResult(1, 0, 0, fileBytes)); } |