summaryrefslogtreecommitdiff
path: root/lib/backupstore
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-02-07 20:30:43 +0000
committerChris Wilson <chris+github@qwirx.com>2014-02-07 20:30:43 +0000
commite5dc0fdadb638d74dffa4bcee8954d8ce4c550b9 (patch)
tree2ba0b917b42107e717e9c84f8c80fa09b40d87c2 /lib/backupstore
parent08c9524181c53855e7d86df391388cab2c2b9ef0 (diff)
Revert "Revert "Fix compile error introduced by bbstoreaccounts refactor.""
This reverts commit b3bc7ad5be2c5b2588793aaa9fbc05e4a1c0aea5. Should not have been applied in SVN (not just yet, anyway).
Diffstat (limited to 'lib/backupstore')
-rw-r--r--lib/backupstore/BackupStoreAccounts.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/backupstore/BackupStoreAccounts.cpp b/lib/backupstore/BackupStoreAccounts.cpp
index 5aed4a6d..d9efcd5d 100644
--- a/lib/backupstore/BackupStoreAccounts.cpp
+++ b/lib/backupstore/BackupStoreAccounts.cpp
@@ -120,7 +120,10 @@ void BackupStoreAccounts::Create(int32_t ID, int DiscSet, int64_t SizeSoftLimit,
info->Save();
// Create the refcount database
- BackupStoreRefCountDatabase::Create(Entry)->Commit();
+ BackupStoreRefCountDatabase::CreateNew(Entry);
+ std::auto_ptr<BackupStoreRefCountDatabase> refcount(
+ BackupStoreRefCountDatabase::Load(Entry, false));
+ refcount->AddReference(BACKUPSTORE_ROOT_DIRECTORY_ID);
}
// As the original user...
@@ -410,7 +413,7 @@ int BackupStoreAccountsControl::PrintAccountInfo(int32_t ID)
std::cout << FormatUsageLineStart("Client store marker", mMachineReadableOutput) <<
info->GetLastObjectIDUsed() << std::endl;
std::cout << FormatUsageLineStart("Current Files", mMachineReadableOutput) <<
- info->GetNumCurrentFiles() << std::endl;
+ info->GetNumFiles() << std::endl;
std::cout << FormatUsageLineStart("Old Files", mMachineReadableOutput) <<
info->GetNumOldFiles() << std::endl;
std::cout << FormatUsageLineStart("Deleted Files", mMachineReadableOutput) <<