summaryrefslogtreecommitdiff
path: root/lib/backupstore
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-11-01 23:36:26 +0000
committerChris Wilson <chris+github@qwirx.com>2011-11-01 23:36:26 +0000
commitea88ca02a8da5e406a7a71892eb0b03de0acba0b (patch)
tree81b8b0568b1934c15f1fe01de05951b8821a1827 /lib/backupstore
parenta6e6b717c6dbeb4d52b5f6670036b9a668dbdb18 (diff)
Allow getting the number of errors found by a store checker object.
Diffstat (limited to 'lib/backupstore')
-rw-r--r--lib/backupstore/BackupStoreCheck.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/backupstore/BackupStoreCheck.h b/lib/backupstore/BackupStoreCheck.h
index e48141f9..da182c5b 100644
--- a/lib/backupstore/BackupStoreCheck.h
+++ b/lib/backupstore/BackupStoreCheck.h
@@ -84,6 +84,10 @@ public:
void Check();
bool ErrorsFound() {return mNumberErrorsFound > 0;}
+ inline int64_t GetNumErrorsFound()
+ {
+ return mNumberErrorsFound;
+ }
private:
enum
@@ -161,7 +165,7 @@ private:
#else
#define DUMP_OBJECT_INFO
#endif
-
+
private:
std::string mStoreRoot;
int mDiscSetNumber;