Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2015-12-05 16:21:21 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2015-12-05 16:21:21 +0300
commit1708dfd581e6f3bd3cef8ac77278c25128a97d6b (patch)
tree1ec23fa27cf2066c82dd1dab4b8edc7ad9418823 /Duplicati
parenta9e34a16251b7887c8c9e97405a1fdfd285670cd (diff)
Optimization for AmzCD: don't load files unless required.
Diffstat (limited to 'Duplicati')
-rw-r--r--Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs b/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs
index c3bdb25a5..d87fa7f68 100644
--- a/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs
+++ b/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs
@@ -286,7 +286,8 @@ namespace Duplicati.Library.Backend.AmazonCloudDrive
}
);
- FileCache[item.Name] = item.ID;
+ if (m_filecache != null)
+ m_filecache[item.Name] = item.ID;
}
catch(Exception ex)
{
@@ -350,7 +351,7 @@ namespace Duplicati.Library.Backend.AmazonCloudDrive
// Docs say to check for empty response ...
//if (lst.Count < PAGE_SIZE)
// break;
- } while(nextToken != null)
+ } while(nextToken != null);
m_filecache = cache;
return res;