diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-03-02 09:00:53 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-03-02 09:00:53 +0000 |
commit | 15677eb9461ef9f868d0cb56b1b7fb2c8601d377 (patch) | |
tree | b875d6dc62b4b9ed76cd5b1ac89ecfcdc8695ba8 /lib/backupstore/BackupStoreRefCountDatabase.h | |
parent | 7723643183f186fc0d5064755d8ba825cb8755cb (diff) |
Whitespace, comments and log messages cleanups.
Diffstat (limited to 'lib/backupstore/BackupStoreRefCountDatabase.h')
-rw-r--r-- | lib/backupstore/BackupStoreRefCountDatabase.h | 9 |
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 |