diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-02-07 23:05:04 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-02-07 23:05:04 +0000 |
commit | 58f09a365624705b25d29aa3caeefa0d97d1c9ba (patch) | |
tree | 3953575fa781527d604b2a03d64db6ecc551a849 /lib/backupstore/BackupStoreCheck.cpp | |
parent | b8d2733b33c1dd2491c60fe9f68f612e6de503e4 (diff) |
Create new refcount database atomically during account check.
Use a temporary refcount db for check instead of an in-memory vector. This
avoid the memory usage problems created by using the vector on large accounts,
but may require us to improve the efficiency of the refcount database itself
to avoid large numbers of small I/O operations. That is very doable now that
we're using a class for it.
Fix some inconsistencies and mistakes in handling reference counts and
info counters during account checks (more to come).
Diffstat (limited to 'lib/backupstore/BackupStoreCheck.cpp')
-rw-r--r-- | lib/backupstore/BackupStoreCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backupstore/BackupStoreCheck.cpp b/lib/backupstore/BackupStoreCheck.cpp index 5e3e0b54..97380037 100644 --- a/lib/backupstore/BackupStoreCheck.cpp +++ b/lib/backupstore/BackupStoreCheck.cpp @@ -405,7 +405,7 @@ void BackupStoreCheck::CheckObjectsDir(int64_t StartID) fileOK = false; } // info and refcount databases are OK in the root directory - else if(*i == "info" || *i == "refcount.db") + else if(*i == "info" || *i == "refcount.db" || *i == "refcount.rdb") { fileOK = true; } |