This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.15 by this push:
new dafa377 secondary-storage: fix account template directory size (#5048)
dafa377 is described below
commit dafa377086ecfefd320e2152e93012a6243b28e0
Author: Abhishek Kumar <[email protected]>
AuthorDate: Sat May 29 22:31:04 2021 +0530
secondary-storage: fix account template directory size (#5048)
Signed-off-by: Abhishek Kumar <[email protected]>
---
.../apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
b/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
index 0b6e844..251b482 100644
---
a/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
+++
b/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
@@ -3258,7 +3258,7 @@ public class NfsSecondaryStorageResource extends
ServerResourceBase implements S
long accountTemplateDirSize = 0;
File accountTemplateDir = new File(rootDir +
getTemplatePathForAccount(accountId));
if (accountTemplateDir.exists()) {
- FileUtils.sizeOfDirectory(accountTemplateDir);
+ accountTemplateDirSize =
FileUtils.sizeOfDirectory(accountTemplateDir);
}
long accountVolumeDirSize = 0;
File accountVolumeDir = new File(rootDir +
getVolumePathForAccount(accountId));