22#include "data/BackendInterface.hpp"
23#include "migration/MigrationInspectorInterface.hpp"
24#include "migration/MigratiorStatus.hpp"
25#include "migration/cassandra/CassandraMigrationManager.hpp"
26#include "util/Assert.hpp"
27#include "util/log/Logger.hpp"
28#include "util/newconfig/ConfigDefinition.hpp"
30#include <boost/algorithm/string.hpp>
31#include <boost/algorithm/string/predicate.hpp>
45inline std::shared_ptr<MigrationInspectorInterface>
46makeMigrationInspector(
48 std::shared_ptr<BackendInterface>
const& backend
51 ASSERT(backend !=
nullptr,
"Backend is not initialized");
53 auto inspector = std::make_shared<migration::cassandra::CassandraMigrationInspector>(backend);
56 if (not config.
get<
bool>(
"read_only") and not backend->hardFetchLedgerRangeNoThrow()) {
58 for (
auto const& name : inspector->allMigratorsNames()) {
59 backend->writeMigratorStatus(name, migrated.toString());
The status of a migrator, it provides the helper functions to convert the status to string and vice v...
Definition MigratiorStatus.hpp:31
All the config data will be stored and extracted from this class.
Definition ConfigDefinition.hpp:54
T get(std::string_view fullKey) const
Returns the specified value of given string if value exists.
Definition ConfigDefinition.hpp:108