FastRestore:Add comments for each restore file
This commit is contained in:
parent
ef9dcd545c
commit
620cdd411e
|
@ -18,13 +18,12 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// This file defines the functions used by the RestoreApplier role.
|
||||
// RestoreApplier role starts at restoreApplierCore actor
|
||||
|
||||
#include "fdbclient/NativeAPI.actor.h"
|
||||
#include "fdbclient/SystemData.h"
|
||||
|
||||
// Backup agent header
|
||||
#include "fdbclient/BackupAgent.actor.h"
|
||||
//#include "FileBackupAgent.h"
|
||||
#include "fdbclient/ManagementAPI.actor.h"
|
||||
#include "fdbclient/MutationList.h"
|
||||
#include "fdbclient/BackupContainer.h"
|
||||
|
@ -34,7 +33,6 @@
|
|||
#include "fdbserver/RestoreRoleCommon.actor.h"
|
||||
#include "fdbserver/RestoreApplier.actor.h"
|
||||
|
||||
|
||||
#include "flow/actorcompiler.h" // This must be the last #include.
|
||||
|
||||
ACTOR Future<Void> handleGetApplierKeyRangeRequest(RestoreGetApplierKeyRangeRequest req, Reference<RestoreApplierData> self);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* RestoreApplierInterface.h
|
||||
* RestoreApplier.actor.h
|
||||
*
|
||||
* This source file is part of the FoundationDB open source project
|
||||
*
|
||||
|
@ -18,23 +18,22 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Declear RestoreApplier interface and actors
|
||||
// This file declears RestoreApplier interface and actors
|
||||
|
||||
#pragma once
|
||||
#if defined(NO_INTELLISENSE) && !defined(FDBSERVER_RestoreApplierInterface_G_H)
|
||||
#define FDBSERVER_RestoreApplierInterface_G_H
|
||||
#if defined(NO_INTELLISENSE) && !defined(FDBSERVER_RESTORE_APPLIER_G_H)
|
||||
#define FDBSERVER_RESTORE_APPLIER_G_H
|
||||
#include "fdbserver/RestoreApplier.actor.g.h"
|
||||
#elif !defined(FDBSERVER_RestoreApplierInterface_H)
|
||||
#define FDBSERVER_RestoreApplierInterface_H
|
||||
#elif !defined(FDBSERVER_RESTORE_APPLIER_H)
|
||||
#define FDBSERVER_RESTORE_APPLIER_H
|
||||
|
||||
#include <sstream>
|
||||
#include "flow/Stats.h"
|
||||
#include "fdbclient/FDBTypes.h"
|
||||
#include "fdbclient/CommitTransaction.h"
|
||||
#include "fdbrpc/fdbrpc.h"
|
||||
#include "fdbserver/CoordinationInterface.h"
|
||||
#include "fdbrpc/Locality.h"
|
||||
|
||||
#include "fdbserver/CoordinationInterface.h"
|
||||
#include "fdbserver/RestoreUtil.h"
|
||||
#include "fdbserver/RestoreRoleCommon.actor.h"
|
||||
#include "fdbserver/RestoreWorkerInterface.h"
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// This file implements the functions defined in RestoreCommon.actor.h
|
||||
// The functions in this file are copied from BackupAgent
|
||||
|
||||
#include "fdbserver/RestoreCommon.actor.h"
|
||||
|
||||
#include "fdbclient/NativeAPI.actor.h"
|
||||
|
|
|
@ -18,6 +18,10 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// This file includes the code copied from the old restore in FDB 5.2
|
||||
// The functions and structure declared in this file can be shared by
|
||||
// the old restore and the new performant restore systems
|
||||
|
||||
#pragma once
|
||||
#if defined(NO_INTELLISENSE) && !defined(FDBSERVER_RESTORECOMMON_ACTOR_G_H)
|
||||
#define FDBSERVER_RESTORECOMMON_ACTOR_G_H
|
||||
|
@ -25,13 +29,12 @@
|
|||
#elif !defined(FDBSERVER_RESTORECOMMON_ACTOR_H)
|
||||
#define FDBSERVER_RESTORECOMMON_ACTOR_H
|
||||
|
||||
#include "fdbclient/Tuple.h"
|
||||
|
||||
#include "flow/flow.h"
|
||||
#include "flow/genericactors.actor.h"
|
||||
#include "fdbclient/Tuple.h"
|
||||
#include "fdbclient/NativeAPI.actor.h"
|
||||
#include "fdbrpc/IAsyncFile.h"
|
||||
#include "fdbclient/BackupAgent.actor.h"
|
||||
#include "flow/genericactors.actor.h"
|
||||
|
||||
#include "flow/actorcompiler.h" // has to be last include
|
||||
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// This file implements the functions and actors used by the RestoreLoader role.
|
||||
// The RestoreLoader role starts with the restoreLoaderCore actor
|
||||
|
||||
#include "fdbclient/BackupContainer.h"
|
||||
#include "fdbserver/RestoreLoader.actor.h"
|
||||
|
||||
|
@ -30,7 +33,7 @@ ACTOR Future<Void> handleLoadRangeFileRequest(RestoreLoadFileRequest req, Refere
|
|||
ACTOR Future<Void> handleLoadLogFileRequest(RestoreLoadFileRequest req, Reference<RestoreLoaderData> self);
|
||||
ACTOR Future<Void> registerMutationsToMasterApplier(Reference<RestoreLoaderData> self);
|
||||
|
||||
ACTOR static Future<Void> _parseLogFileToMutationsOnLoader(Reference<RestoreLoaderData> self,
|
||||
ACTOR static Future<Void> _parseLogFileToMutationsOnLoader(Reference<RestoreLoaderData> self,
|
||||
Reference<IBackupContainer> bc, Version version,
|
||||
std::string fileName, int64_t readOffset, int64_t readLen,
|
||||
KeyRange restoreRange, Key addPrefix, Key removePrefix,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* RestoreLoaderInterface.h
|
||||
* RestoreLoader.h
|
||||
*
|
||||
* This source file is part of the FoundationDB open source project
|
||||
*
|
||||
|
@ -18,14 +18,14 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Declear RestoreLoader interface and actors
|
||||
// This file declares the actors used by the RestoreLoader role
|
||||
|
||||
#pragma once
|
||||
#if defined(NO_INTELLISENSE) && !defined(FDBSERVER_RestoreLoaderInterface_G_H)
|
||||
#define FDBSERVER_RestoreLoaderInterface_G_H
|
||||
#if defined(NO_INTELLISENSE) && !defined(FDBSERVER_RESTORE_LOADER_G_H)
|
||||
#define FDBSERVER_RESTORE_LOADER_G_H
|
||||
#include "fdbserver/RestoreLoader.actor.g.h"
|
||||
#elif !defined(FDBSERVER_RestoreLoaderInterface_H)
|
||||
#define FDBSERVER_RestoreLoaderInterface_H
|
||||
#elif !defined(FDBSERVER_RESTORE_LOADER_H)
|
||||
#define FDBSERVER_RESTORE_LOADER_H
|
||||
|
||||
#include <sstream>
|
||||
#include "flow/Stats.h"
|
||||
|
|
|
@ -18,17 +18,14 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// This file implements the functions for RestoreMaster role
|
||||
|
||||
#include "fdbclient/NativeAPI.actor.h"
|
||||
#include "fdbclient/SystemData.h"
|
||||
|
||||
// Backup agent header
|
||||
#include "fdbclient/BackupAgent.actor.h"
|
||||
//#include "FileBackupAgent.h"
|
||||
#include "fdbclient/ManagementAPI.actor.h"
|
||||
#include "fdbclient/MutationList.h"
|
||||
#include "fdbclient/BackupContainer.h"
|
||||
|
||||
#include "fdbserver/RestoreCommon.actor.h"
|
||||
#include "fdbserver/RestoreRoleCommon.actor.h"
|
||||
#include "fdbserver/RestoreMaster.actor.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* RestoreMasterInterface.h
|
||||
* RestoreMaster.h
|
||||
*
|
||||
* This source file is part of the FoundationDB open source project
|
||||
*
|
||||
|
@ -18,23 +18,22 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Declear RestoreMaster interface and actors
|
||||
// This file declear RestoreMaster interface and actors
|
||||
|
||||
#pragma once
|
||||
#if defined(NO_INTELLISENSE) && !defined(FDBSERVER_RestoreMasterInterface_G_H)
|
||||
#define FDBSERVER_RestoreMasterInterface_G_H
|
||||
#if defined(NO_INTELLISENSE) && !defined(FDBSERVER_RESTORE_MASTER_G_H)
|
||||
#define FDBSERVER_RESTORE_MASTER_G_H
|
||||
#include "fdbserver/RestoreMaster.actor.g.h"
|
||||
#elif !defined(FDBSERVER_RestoreMasterInterface_H)
|
||||
#define FDBSERVER_RestoreMasterInterface_H
|
||||
#elif !defined(FDBSERVER_RESTORE_MASTER_H)
|
||||
#define FDBSERVER_RESTORE_MASTER_H
|
||||
|
||||
#include <sstream>
|
||||
#include "flow/Stats.h"
|
||||
#include "fdbclient/FDBTypes.h"
|
||||
#include "fdbclient/CommitTransaction.h"
|
||||
#include "fdbrpc/fdbrpc.h"
|
||||
#include "fdbserver/CoordinationInterface.h"
|
||||
#include "fdbrpc/Locality.h"
|
||||
|
||||
#include "fdbserver/CoordinationInterface.h"
|
||||
#include "fdbserver/RestoreUtil.h"
|
||||
#include "fdbserver/RestoreRoleCommon.actor.h"
|
||||
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Delcare commone struct and functions used in fast restore
|
||||
// This file delcares common struct and functions shared by restore roles, i.e.,
|
||||
// RestoreMaster, RestoreLoader, RestoreApplier
|
||||
|
||||
#pragma once
|
||||
#if defined(NO_INTELLISENSE) && !defined(FDBSERVER_RestoreRoleCommon_G_H)
|
||||
|
@ -32,9 +33,8 @@
|
|||
#include "fdbclient/FDBTypes.h"
|
||||
#include "fdbclient/CommitTransaction.h"
|
||||
#include "fdbrpc/fdbrpc.h"
|
||||
#include "fdbserver/CoordinationInterface.h"
|
||||
#include "fdbrpc/Locality.h"
|
||||
|
||||
#include "fdbserver/CoordinationInterface.h"
|
||||
#include "fdbserver/RestoreUtil.h"
|
||||
#include "fdbserver/RestoreWorkerInterface.h"
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// This file implements the functions defined in RestoreUtil.h
|
||||
|
||||
#include "fdbserver/RestoreUtil.h"
|
||||
|
||||
#include "flow/actorcompiler.h" // This must be the last #include.
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// Declare and define the interface for restore worker/loader/applier
|
||||
// This file declare and define the interface for RestoreWorker and restore roles
|
||||
// which are RestoreMaster, RestoreLoader, and RestoreApplier
|
||||
|
||||
#ifndef FDBSERVER_RESTORE_WORKER_INTERFACE_H
|
||||
#define FDBSERVER_RESTORE_WORKER_INTERFACE_H
|
||||
|
|
Loading…
Reference in New Issue