summaryrefslogtreecommitdiff
path: root/lib/backupstore
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-02-07 20:03:30 +0000
committerChris Wilson <chris+github@qwirx.com>2014-02-07 20:03:30 +0000
commitb2501248e2251d6601fbf2ad60ceb328d110593a (patch)
tree9b253d407e0db75908b743007576e6939cc5f518 /lib/backupstore
parentb5ad923c87a1977875966b82ea8b421b7a71f9eb (diff)
Revert "Fix compile error introduced by bbstoreaccounts refactor."
This reverts commit 9d0580c58025ba94bee02cdc2aae3fe0b6ccf604.
Diffstat (limited to 'lib/backupstore')
-rw-r--r--lib/backupstore/BackupStoreAccounts.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/backupstore/BackupStoreAccounts.cpp b/lib/backupstore/BackupStoreAccounts.cpp
index d9efcd5d..5aed4a6d 100644
--- a/lib/backupstore/BackupStoreAccounts.cpp
+++ b/lib/backupstore/BackupStoreAccounts.cpp
@@ -120,10 +120,7 @@ void BackupStoreAccounts::Create(int32_t ID, int DiscSet, int64_t SizeSoftLimit,
info->Save();
// Create the refcount database
- BackupStoreRefCountDatabase::CreateNew(Entry);
- std::auto_ptr<BackupStoreRefCountDatabase> refcount(
- BackupStoreRefCountDatabase::Load(Entry, false));
- refcount->AddReference(BACKUPSTORE_ROOT_DIRECTORY_ID);
+ BackupStoreRefCountDatabase::Create(Entry)->Commit();
}
// As the original user...
@@ -413,7 +410,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->GetNumFiles() << std::endl;
+ info->GetNumCurrentFiles() << std::endl;
std::cout << FormatUsageLineStart("Old Files", mMachineReadableOutput) <<
info->GetNumOldFiles() << std::endl;
std::cout << FormatUsageLineStart("Deleted Files", mMachineReadableOutput) <<