secondary-storage: fix account template directory size (#5048)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2021-05-29 22:31:04 +05:30 committed by GitHub
parent 4ec337fd2a
commit dafa377086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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));