Compiling on clang again
This commit is contained in:
parent
0713e06efc
commit
96aaa31a6c
|
@ -166,6 +166,21 @@ struct SystemFailureStatus {
|
|||
}
|
||||
};
|
||||
|
||||
struct FailureMonitoringReply {
|
||||
constexpr static FileIdentifier file_identifier = 6820325;
|
||||
VectorRef< SystemFailureStatus > changes;
|
||||
Version failureInformationVersion;
|
||||
bool allOthersFailed; // If true, changes are relative to all servers being failed, otherwise to the version given in the request
|
||||
int clientRequestIntervalMS, // after this many milliseconds, send another request
|
||||
considerServerFailedTimeoutMS; // after this many additional milliseconds, consider the ClusterController itself to be failed
|
||||
Arena arena;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, changes, failureInformationVersion, allOthersFailed, clientRequestIntervalMS, considerServerFailedTimeoutMS, arena);
|
||||
}
|
||||
};
|
||||
|
||||
struct FailureMonitoringRequest {
|
||||
// Sent by all participants to the cluster controller reply.clientRequestIntervalMS
|
||||
// ms after receiving the previous reply.
|
||||
|
@ -189,31 +204,6 @@ struct FailureMonitoringRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct FailureMonitoringReply {
|
||||
constexpr static FileIdentifier file_identifier = 6820325;
|
||||
VectorRef< SystemFailureStatus > changes;
|
||||
Version failureInformationVersion;
|
||||
bool allOthersFailed; // If true, changes are relative to all servers being failed, otherwise to the version given in the request
|
||||
int clientRequestIntervalMS, // after this many milliseconds, send another request
|
||||
considerServerFailedTimeoutMS; // after this many additional milliseconds, consider the ClusterController itself to be failed
|
||||
Arena arena;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, changes, failureInformationVersion, allOthersFailed, clientRequestIntervalMS, considerServerFailedTimeoutMS, arena);
|
||||
}
|
||||
};
|
||||
|
||||
struct StatusRequest {
|
||||
constexpr static FileIdentifier file_identifier = 14419140;
|
||||
ReplyPromise< struct StatusReply > reply;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, reply);
|
||||
}
|
||||
};
|
||||
|
||||
struct StatusReply {
|
||||
constexpr static FileIdentifier file_identifier = 9980504;
|
||||
StatusObject statusObj;
|
||||
|
@ -240,6 +230,16 @@ struct StatusReply {
|
|||
}
|
||||
};
|
||||
|
||||
struct StatusRequest {
|
||||
constexpr static FileIdentifier file_identifier = 14419140;
|
||||
ReplyPromise< struct StatusReply > reply;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, reply);
|
||||
}
|
||||
};
|
||||
|
||||
struct GetClientWorkersRequest {
|
||||
constexpr static FileIdentifier file_identifier = 10771791;
|
||||
ReplyPromise<vector<ClientWorkerInterface>> reply;
|
||||
|
|
|
@ -250,21 +250,6 @@ struct TxnStateRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct GetHealthMetricsRequest
|
||||
{
|
||||
constexpr static FileIdentifier file_identifier = 11403900;
|
||||
ReplyPromise<struct GetHealthMetricsReply> reply;
|
||||
bool detailed;
|
||||
|
||||
explicit GetHealthMetricsRequest(bool detailed = false) : detailed(detailed) {}
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar)
|
||||
{
|
||||
serializer(ar, reply, detailed);
|
||||
}
|
||||
};
|
||||
|
||||
struct GetHealthMetricsReply
|
||||
{
|
||||
constexpr static FileIdentifier file_identifier = 11544290;
|
||||
|
@ -295,4 +280,19 @@ struct GetHealthMetricsReply
|
|||
}
|
||||
};
|
||||
|
||||
struct GetHealthMetricsRequest
|
||||
{
|
||||
constexpr static FileIdentifier file_identifier = 11403900;
|
||||
ReplyPromise<struct GetHealthMetricsReply> reply;
|
||||
bool detailed;
|
||||
|
||||
explicit GetHealthMetricsRequest(bool detailed = false) : detailed(detailed) {}
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar)
|
||||
{
|
||||
serializer(ar, reply, detailed);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -359,17 +359,6 @@ struct GetPhysicalMetricsRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct StorageQueuingMetricsRequest {
|
||||
// SOMEDAY: Send threshold value to avoid polling faster than the information changes?
|
||||
constexpr static FileIdentifier file_identifier = 3978640;
|
||||
ReplyPromise<struct StorageQueuingMetricsReply> reply;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, reply);
|
||||
}
|
||||
};
|
||||
|
||||
struct StorageQueuingMetricsReply {
|
||||
constexpr static FileIdentifier file_identifier = 7633366;
|
||||
double localTime;
|
||||
|
@ -387,4 +376,15 @@ struct StorageQueuingMetricsReply {
|
|||
}
|
||||
};
|
||||
|
||||
struct StorageQueuingMetricsRequest {
|
||||
// SOMEDAY: Send threshold value to avoid polling faster than the information changes?
|
||||
constexpr static FileIdentifier file_identifier = 3978640;
|
||||
ReplyPromise<struct StorageQueuingMetricsReply> reply;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, reply);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -71,23 +71,6 @@ struct ClusterControllerFullInterface {
|
|||
}
|
||||
};
|
||||
|
||||
struct RecruitFromConfigurationRequest {
|
||||
constexpr static FileIdentifier file_identifier = 2023046;
|
||||
DatabaseConfiguration configuration;
|
||||
bool recruitSeedServers;
|
||||
int maxOldLogRouters;
|
||||
ReplyPromise< struct RecruitFromConfigurationReply > reply;
|
||||
|
||||
RecruitFromConfigurationRequest() {}
|
||||
explicit RecruitFromConfigurationRequest(DatabaseConfiguration const& configuration, bool recruitSeedServers, int maxOldLogRouters)
|
||||
: configuration(configuration), recruitSeedServers(recruitSeedServers), maxOldLogRouters(maxOldLogRouters) {}
|
||||
|
||||
template <class Ar>
|
||||
void serialize( Ar& ar ) {
|
||||
serializer(ar, configuration, recruitSeedServers, maxOldLogRouters, reply);
|
||||
}
|
||||
};
|
||||
|
||||
struct RecruitFromConfigurationReply {
|
||||
constexpr static FileIdentifier file_identifier = 2224085;
|
||||
vector<WorkerInterface> tLogs;
|
||||
|
@ -107,6 +90,34 @@ struct RecruitFromConfigurationReply {
|
|||
}
|
||||
};
|
||||
|
||||
struct RecruitFromConfigurationRequest {
|
||||
constexpr static FileIdentifier file_identifier = 2023046;
|
||||
DatabaseConfiguration configuration;
|
||||
bool recruitSeedServers;
|
||||
int maxOldLogRouters;
|
||||
ReplyPromise< struct RecruitFromConfigurationReply > reply;
|
||||
|
||||
RecruitFromConfigurationRequest() {}
|
||||
explicit RecruitFromConfigurationRequest(DatabaseConfiguration const& configuration, bool recruitSeedServers, int maxOldLogRouters)
|
||||
: configuration(configuration), recruitSeedServers(recruitSeedServers), maxOldLogRouters(maxOldLogRouters) {}
|
||||
|
||||
template <class Ar>
|
||||
void serialize( Ar& ar ) {
|
||||
serializer(ar, configuration, recruitSeedServers, maxOldLogRouters, reply);
|
||||
}
|
||||
};
|
||||
|
||||
struct RecruitRemoteFromConfigurationReply {
|
||||
constexpr static FileIdentifier file_identifier = 9091392;
|
||||
vector<WorkerInterface> remoteTLogs;
|
||||
vector<WorkerInterface> logRouters;
|
||||
|
||||
template <class Ar>
|
||||
void serialize( Ar& ar ) {
|
||||
serializer(ar, remoteTLogs, logRouters);
|
||||
}
|
||||
};
|
||||
|
||||
struct RecruitRemoteFromConfigurationRequest {
|
||||
constexpr static FileIdentifier file_identifier = 3235995;
|
||||
DatabaseConfiguration configuration;
|
||||
|
@ -124,17 +135,6 @@ struct RecruitRemoteFromConfigurationRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct RecruitRemoteFromConfigurationReply {
|
||||
constexpr static FileIdentifier file_identifier = 9091392;
|
||||
vector<WorkerInterface> remoteTLogs;
|
||||
vector<WorkerInterface> logRouters;
|
||||
|
||||
template <class Ar>
|
||||
void serialize( Ar& ar ) {
|
||||
serializer(ar, remoteTLogs, logRouters);
|
||||
}
|
||||
};
|
||||
|
||||
struct RecruitStorageReply {
|
||||
constexpr static FileIdentifier file_identifier = 15877089;
|
||||
WorkerInterface worker;
|
||||
|
@ -240,19 +240,6 @@ struct RegisterMasterRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct GetServerDBInfoRequest {
|
||||
constexpr static FileIdentifier file_identifier = 9467438;
|
||||
UID knownServerInfoID;
|
||||
Standalone<VectorRef<StringRef>> issues;
|
||||
std::vector<NetworkAddress> incompatiblePeers;
|
||||
ReplyPromise< struct ServerDBInfo > reply;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, knownServerInfoID, issues, incompatiblePeers, reply);
|
||||
}
|
||||
};
|
||||
|
||||
#include "fdbserver/ServerDBInfo.h" // include order hack
|
||||
|
||||
#endif
|
||||
|
|
|
@ -72,6 +72,18 @@ struct UniqueGeneration {
|
|||
}
|
||||
};
|
||||
|
||||
struct GenerationRegReadReply {
|
||||
constexpr static FileIdentifier file_identifier = 12623609;
|
||||
Optional<Value> value;
|
||||
UniqueGeneration gen, rgen;
|
||||
GenerationRegReadReply() {}
|
||||
GenerationRegReadReply( Optional<Value> value, UniqueGeneration gen, UniqueGeneration rgen ) : value(value), gen(gen), rgen(rgen) {}
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, value, gen, rgen);
|
||||
}
|
||||
};
|
||||
|
||||
struct GenerationRegReadRequest {
|
||||
constexpr static FileIdentifier file_identifier = 8975311;
|
||||
Key key;
|
||||
|
@ -85,18 +97,6 @@ struct GenerationRegReadRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct GenerationRegReadReply {
|
||||
constexpr static FileIdentifier file_identifier = 12623609;
|
||||
Optional<Value> value;
|
||||
UniqueGeneration gen, rgen;
|
||||
GenerationRegReadReply() {}
|
||||
GenerationRegReadReply( Optional<Value> value, UniqueGeneration gen, UniqueGeneration rgen ) : value(value), gen(gen), rgen(rgen) {}
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, value, gen, rgen);
|
||||
}
|
||||
};
|
||||
|
||||
struct GenerationRegWriteRequest {
|
||||
constexpr static FileIdentifier file_identifier = 3521510;
|
||||
KeyValue kv;
|
||||
|
|
|
@ -33,6 +33,17 @@ struct NetworkTestInterface {
|
|||
NetworkTestInterface( INetwork* local );
|
||||
};
|
||||
|
||||
struct NetworkTestReply {
|
||||
constexpr static FileIdentifier file_identifier = 14465374;
|
||||
Value value;
|
||||
NetworkTestReply() {}
|
||||
NetworkTestReply( Value value ) : value(value) {}
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, value);
|
||||
}
|
||||
};
|
||||
|
||||
struct NetworkTestRequest {
|
||||
constexpr static FileIdentifier file_identifier = 4146513;
|
||||
Key key;
|
||||
|
@ -46,17 +57,6 @@ struct NetworkTestRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct NetworkTestReply {
|
||||
constexpr static FileIdentifier file_identifier = 14465374;
|
||||
Value value;
|
||||
NetworkTestReply() {}
|
||||
NetworkTestReply( Value value ) : value(value) {}
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, value);
|
||||
}
|
||||
};
|
||||
|
||||
Future<Void> networkTestServer();
|
||||
|
||||
Future<Void> networkTestClient( std:: string const& testServers );
|
||||
|
|
|
@ -52,6 +52,19 @@ struct RatekeeperInterface {
|
|||
}
|
||||
};
|
||||
|
||||
struct GetRateInfoReply {
|
||||
constexpr static FileIdentifier file_identifier = 7845006;
|
||||
double transactionRate;
|
||||
double batchTransactionRate;
|
||||
double leaseDuration;
|
||||
HealthMetrics healthMetrics;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, transactionRate, batchTransactionRate, leaseDuration, healthMetrics);
|
||||
}
|
||||
};
|
||||
|
||||
struct GetRateInfoRequest {
|
||||
constexpr static FileIdentifier file_identifier = 9068521;
|
||||
UID requesterID;
|
||||
|
@ -70,19 +83,6 @@ struct GetRateInfoRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct GetRateInfoReply {
|
||||
constexpr static FileIdentifier file_identifier = 7845006;
|
||||
double transactionRate;
|
||||
double batchTransactionRate;
|
||||
double leaseDuration;
|
||||
HealthMetrics healthMetrics;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, transactionRate, batchTransactionRate, leaseDuration, healthMetrics);
|
||||
}
|
||||
};
|
||||
|
||||
struct HaltRatekeeperRequest {
|
||||
constexpr static FileIdentifier file_identifier = 6997218;
|
||||
UID requesterID;
|
||||
|
|
|
@ -46,6 +46,19 @@ struct RestoreInterface {
|
|||
}
|
||||
};
|
||||
|
||||
struct TestReply {
|
||||
constexpr static FileIdentifier file_identifier = 12075719;
|
||||
int replyData;
|
||||
|
||||
TestReply() : replyData(0) {}
|
||||
explicit TestReply(int replyData) : replyData(replyData) {}
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, replyData);
|
||||
}
|
||||
};
|
||||
|
||||
struct TestRequest {
|
||||
constexpr static FileIdentifier file_identifier = 14404487;
|
||||
int testData;
|
||||
|
@ -60,19 +73,6 @@ struct TestRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct TestReply {
|
||||
constexpr static FileIdentifier file_identifier = 12075719;
|
||||
int replyData;
|
||||
|
||||
TestReply() : replyData(0) {}
|
||||
explicit TestReply(int replyData) : replyData(replyData) {}
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, replyData);
|
||||
}
|
||||
};
|
||||
|
||||
Future<Void> restoreWorker(Reference<ClusterConnectionFile> const& ccf, LocalityData const& locality);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -62,4 +62,17 @@ struct ServerDBInfo {
|
|||
}
|
||||
};
|
||||
|
||||
struct GetServerDBInfoRequest {
|
||||
constexpr static FileIdentifier file_identifier = 9467438;
|
||||
UID knownServerInfoID;
|
||||
Standalone<VectorRef<StringRef>> issues;
|
||||
std::vector<NetworkAddress> incompatiblePeers;
|
||||
ReplyPromise< struct ServerDBInfo > reply;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, knownServerInfoID, issues, incompatiblePeers, reply);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -228,16 +228,6 @@ struct TLogCommitRequest {
|
|||
}
|
||||
};
|
||||
|
||||
struct TLogQueuingMetricsRequest {
|
||||
constexpr static FileIdentifier file_identifier = 7798476;
|
||||
ReplyPromise<struct TLogQueuingMetricsReply> reply;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, reply);
|
||||
}
|
||||
};
|
||||
|
||||
struct TLogQueuingMetricsReply {
|
||||
constexpr static FileIdentifier file_identifier = 12206626;
|
||||
double localTime;
|
||||
|
@ -252,4 +242,14 @@ struct TLogQueuingMetricsReply {
|
|||
}
|
||||
};
|
||||
|
||||
struct TLogQueuingMetricsRequest {
|
||||
constexpr static FileIdentifier file_identifier = 7798476;
|
||||
ReplyPromise<struct TLogQueuingMetricsReply> reply;
|
||||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
serializer(ar, reply);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -24,11 +24,6 @@
|
|||
|
||||
using FileIdentifier = uint32_t;
|
||||
|
||||
template <class T>
|
||||
struct FileIdentifierOf {
|
||||
constexpr static FileIdentifier value = T::file_identifier;
|
||||
};
|
||||
|
||||
struct Empty {};
|
||||
|
||||
template <typename T, typename = int>
|
||||
|
@ -142,4 +137,3 @@ template <>
|
|||
struct FileIdentifierFor<double> {
|
||||
constexpr static FileIdentifier value = 9348150;
|
||||
};
|
||||
|
||||
|
|
|
@ -1070,6 +1070,7 @@ inline FileIdentifier read_file_identifier(const uint8_t* in) {
|
|||
// introduce the indirection only when necessary.
|
||||
template <class T>
|
||||
struct EnsureTable {
|
||||
static_assert(HasFileIdentifier<T>::value);
|
||||
constexpr static FileIdentifier file_identifier = FileIdentifierFor<T>::value;
|
||||
EnsureTable() = default;
|
||||
EnsureTable(const object_construction<T>& t) : t(t) {}
|
||||
|
|
Loading…
Reference in New Issue