Skip to content

Commit

Permalink
Refactor BackupStoreCheck to use BackupFileSystem, part 8
Browse files Browse the repository at this point in the history
Remove last vestiges of RaidFile from BackupStoreCheck.
  • Loading branch information
qris committed Oct 7, 2017
1 parent 65de4e0 commit 1eab33a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/backupstore/BackupAccountControl.cpp
Expand Up @@ -443,7 +443,7 @@ int BackupStoreAccountControl::CheckAccount(bool FixErrors, bool Quiet,
OPEN_ACCOUNT(FixErrors); // readWrite

// Check it
BackupStoreCheck check(*mapFileSystem, mRootDir, mDiscSetNum, FixErrors, Quiet);
BackupStoreCheck check(*mapFileSystem, FixErrors, Quiet);
check.Check();

if(ReturnNumErrorsFound)
Expand Down
8 changes: 2 additions & 6 deletions lib/backupstore/BackupStoreCheck.cpp
Expand Up @@ -45,12 +45,8 @@
// Created: 21/4/04
//
// --------------------------------------------------------------------------
BackupStoreCheck::BackupStoreCheck(BackupFileSystem& FileSystem,
const std::string &rStoreRoot, int DiscSetNumber, bool FixErrors,
bool Quiet)
: mStoreRoot(rStoreRoot),
mDiscSetNumber(DiscSetNumber),
mAccountID(FileSystem.GetAccountID()), // will be 0 for S3BackupFileSystem
BackupStoreCheck::BackupStoreCheck(BackupFileSystem& FileSystem, bool FixErrors, bool Quiet)
: mAccountID(FileSystem.GetAccountID()), // will be 0 for S3BackupFileSystem
mFixErrors(FixErrors),
mQuiet(Quiet),
mNumberErrorsFound(0),
Expand Down
5 changes: 1 addition & 4 deletions lib/backupstore/BackupStoreCheck.h
Expand Up @@ -73,8 +73,7 @@ typedef int64_t BackupStoreCheck_Size_t;
class BackupStoreCheck
{
public:
BackupStoreCheck(BackupFileSystem& rFileSystem, const std::string &rStoreRoot,
int DiscSetNumber, bool FixErrors, bool Quiet);
BackupStoreCheck(BackupFileSystem& rFileSystem, bool FixErrors, bool Quiet);
~BackupStoreCheck();

private:
Expand Down Expand Up @@ -171,8 +170,6 @@ class BackupStoreCheck
#endif

private:
std::string mStoreRoot;
int mDiscSetNumber;
int32_t mAccountID;
std::string mAccountName;
bool mFixErrors;
Expand Down
3 changes: 0 additions & 3 deletions lib/backupstore/BackupStoreCheck2.cpp
Expand Up @@ -23,9 +23,6 @@
#include "BackupStoreObjectMagic.h"
#include "BackupStoreRefCountDatabase.h"
#include "MemBlockStream.h"
#include "RaidFileRead.h"
#include "RaidFileWrite.h"
#include "StoreStructure.h"

#include "MemLeakFindOn.h"

Expand Down

0 comments on commit 1eab33a

Please sign in to comment.