From 57a2fb9fd87609f86759d437e2945b1e7d4790a1 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 22 Jan 2021 21:04:11 +0800 Subject: Add a comment as a remainder --- .../backup/incremental/manager/IncrementalBackupStorageManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com/keuin') 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 1984362..945fcc4 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 @@ -160,6 +160,7 @@ public class IncrementalBackupStorageManager { */ private boolean baseContainsObject(ObjectElement objectElement) { // This may be extended to use more variants of hash functions and combinations of other attributes (such as file size) + //TODO: optimize this by using in-memory data structure return (new File(backupStorageBase.toFile(), objectElement.getIdentifier().getIdentification())).exists(); } -- cgit v1.2.3