From b5ad923c87a1977875966b82ea8b421b7a71f9eb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 7 Feb 2014 19:57:27 +0000 Subject: Fix compile error introduced by bbstoreaccounts refactor. --- lib/backupstore/BackupStoreAccounts.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/backupstore/BackupStoreAccounts.cpp') 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 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) << -- cgit v1.2.3