summaryrefslogtreecommitdiff
path: root/lib/backupstore/BackupStoreRefCountDatabase.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-03-02 09:00:53 +0000
committerChris Wilson <chris+github@qwirx.com>2014-03-02 09:00:53 +0000
commit15677eb9461ef9f868d0cb56b1b7fb2c8601d377 (patch)
treeb875d6dc62b4b9ed76cd5b1ac89ecfcdc8695ba8 /lib/backupstore/BackupStoreRefCountDatabase.h
parent7723643183f186fc0d5064755d8ba825cb8755cb (diff)
Whitespace, comments and log messages cleanups.
Diffstat (limited to 'lib/backupstore/BackupStoreRefCountDatabase.h')
-rw-r--r--lib/backupstore/BackupStoreRefCountDatabase.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/backupstore/BackupStoreRefCountDatabase.h b/lib/backupstore/BackupStoreRefCountDatabase.h
index f0c1222f..797f05dc 100644
--- a/lib/backupstore/BackupStoreRefCountDatabase.h
+++ b/lib/backupstore/BackupStoreRefCountDatabase.h
@@ -66,22 +66,23 @@ private:
BackupStoreRefCountDatabase(const BackupStoreRefCountDatabase &);
public:
- // Create a new database for a new account.
+ // Create a blank database, using a temporary file that you must
+ // Discard() or Commit() to make permanent.
static std::auto_ptr<BackupStoreRefCountDatabase> Create
(const BackupStoreAccountDatabase::Entry& rAccount);
void Commit();
void Discard();
-
+
// Load it from the store
static std::auto_ptr<BackupStoreRefCountDatabase> Load(const
BackupStoreAccountDatabase::Entry& rAccount, bool ReadOnly);
-
+
typedef uint32_t refcount_t;
// Data access functions
refcount_t GetRefCount(int64_t ObjectID) const;
int64_t GetLastObjectIDUsed() const;
-
+
// Data modification functions
void AddReference(int64_t ObjectID);
// RemoveReference returns false if refcount drops to zero