OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MongoDBUpgrader.h
Go to the documentation of this file.
1#pragma once
2#include "MongoDBSettings.h"
3
5{
6public:
7 MongoDBUpgrader(const MongoDBSettings &_settings, const std::string& _tempCfgPath);
8
9 int checkForFeatureCompatibilityVersion(int _startVersionMajor);
10
11 void performUpgrade(int version);
13 static const int getSupportedMaxVersion() { return maxVersion; }
14
15private:
16 static const int maxVersion = 7;
17 const MongoDBSettings& m_settings;
18 const std::string m_cfgPath;
19
20 void updateServerFCV(const std::string& _version);
21 void runServer(const std::string _path);
22};
Definition MongoDBUpgrader.h:5
void performUpgrade(int version)
Definition MongoDBUpgrader.cpp:75
static const int getSupportedMaxVersion()
Definition MongoDBUpgrader.h:13
int checkForFeatureCompatibilityVersion(int _startVersionMajor)
Definition MongoDBUpgrader.cpp:17
MongoDBUpgrader(const MongoDBSettings &_settings, const std::string &_tempCfgPath)
Definition MongoDBUpgrader.cpp:13
void performUpgrade4_2To4_4()
Definition MongoDBUpgrader.cpp:98
Definition MongoDBSettings.h:4