mirror of https://gitee.com/bigwinds/arangodb
Changes to allow restore from 3.5 to 3.6.
This commit is contained in:
parent
40ae1d3c81
commit
abd8c5b8bd
|
@ -143,9 +143,9 @@ void UpgradeFeature::validateOptions(std::shared_ptr<ProgramOptions> options) {
|
|||
cluster.forceDisable();
|
||||
ServerState::instance()->setRole(ServerState::ROLE_SINGLE);
|
||||
|
||||
#ifdef USE_ENTEPRISE
|
||||
#ifdef USE_ENTERPRISE
|
||||
HotBackupFeature& hotBackupFeature = server().getFeature<HotBackupFeature>();
|
||||
hotBackupFeature.disable();
|
||||
hotBackupFeature.forceDisable();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -277,3 +277,5 @@ std::string const StaticStrings::New("new");
|
|||
std::string const StaticStrings::Old("old");
|
||||
std::string const StaticStrings::UpgradeEnvName(
|
||||
"ARANGODB_UPGRADE_DURING_RESTORE");
|
||||
std::string const StaticStrings::BackupToDeleteName("DIRECTORY_TO_DELETE");
|
||||
std::string const StaticStrings::BackupSearchToDeleteName("DIRECTORY_TO_DELETE_SEARCH");
|
||||
|
|
|
@ -252,6 +252,8 @@ class StaticStrings {
|
|||
static std::string const New;
|
||||
static std::string const Old;
|
||||
static std::string const UpgradeEnvName;
|
||||
static std::string const BackupToDeleteName;
|
||||
static std::string const BackupSearchToDeleteName;
|
||||
};
|
||||
} // namespace arangodb
|
||||
|
||||
|
|
|
@ -365,16 +365,16 @@ public:
|
|||
|
||||
/// @brief test
|
||||
TEST(RocksDBHotBackupRestoreDirectories, test_createRestoringDirectory) {
|
||||
std::string restoringDir, restoringSearchDir, tempname;
|
||||
std::string fullRestoringDir, restoringDir, restoringSearchDir, tempname;
|
||||
bool retBool;
|
||||
|
||||
VPackBuilder report;
|
||||
tests::mocks::MockAqlServer server;
|
||||
HotBackupFeature& feature = server.getFeature<HotBackupFeature>();
|
||||
RocksDBHotBackupRestoreTest testee(feature, VPackSlice(), report);
|
||||
testee.createHotDirectory();
|
||||
testee.createHotDirectory()
|
||||
|
||||
retBool = testee.createRestoringDirectories(restoringDir, restoringSearchDir);
|
||||
retBool = testee.createRestoringDirectories(fullRestoringDir, restoringDir, restoringSearchDir);
|
||||
|
||||
// spot check files in restoring dir
|
||||
EXPECT_TRUE( retBool );
|
||||
|
|
Loading…
Reference in New Issue