Adjust all includes to be relative to the root.

Remove the use of relative paths.  A header at foo/bar.h could be included by
files under foo/ with "bar.h", but would be included everywhere else as
"foo/bar.h".  Adjust so that every include references such a header with the
latter form.

Signed-off-by: Robert Escriva <rescriva@dropbox.com>
This commit is contained in:
Robert Escriva 2018-10-19 17:30:13 +00:00
parent bf6b3f57b1
commit 268093a96d
318 changed files with 764 additions and 764 deletions

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "FlowLineNoise.h"
#include "fdbcli/FlowLineNoise.h"
#include "flow/IThreadPool.h"
#define BOOST_SYSTEM_NO_LIB
@ -30,7 +30,7 @@
#if __unixish__
#define HAVE_LINENOISE 1
#include "linenoise/linenoise.h"
#include "fdbcli/linenoise/linenoise.h"
#else
#define HAVE_LINENOISE 0
#endif

View File

@ -38,7 +38,7 @@
#include "flow/SimpleOpt.h"
#include "FlowLineNoise.h"
#include "fdbcli/FlowLineNoise.h"
#include <signal.h>

View File

@ -22,7 +22,7 @@
#define FLOW_FDBCLIENT_ATOMIC_H
#pragma once
#include "CommitTransaction.h"
#include "fdbclient/CommitTransaction.h"
static ValueRef doLittleEndianAdd(const Optional<ValueRef>& existingValueOptional, const ValueRef& otherOperand, Arena& ar) {
const ValueRef& existingValue = existingValueOptional.present() ? existingValueOptional.get() : StringRef();

View File

@ -26,7 +26,7 @@
#define BOOST_REGEX_NO_LIB
#include "boost/asio.hpp"
#include "CoordinationInterface.h"
#include "fdbclient/CoordinationInterface.h"
uint32_t determinePublicIPAutomatically( ClusterConnectionString const& ccs ) {
try {

View File

@ -23,14 +23,14 @@
#pragma once
#include "flow/flow.h"
#include "NativeAPI.h"
#include "TaskBucket.h"
#include "Notified.h"
#include <fdbrpc/IAsyncFile.h>
#include "KeyBackedTypes.h"
#include "fdbclient/NativeAPI.h"
#include "fdbclient/TaskBucket.h"
#include "fdbclient/Notified.h"
#include "fdbrpc/IAsyncFile.h"
#include "fdbclient/KeyBackedTypes.h"
#include <ctime>
#include <climits>
#include "BackupContainer.h"
#include "fdbclient/BackupContainer.h"
class BackupAgentBase : NonCopyable {
public:

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "BackupAgent.h"
#include "fdbclient/BackupAgent.h"
#include "fdbrpc/simulator.h"
#include "flow/ActorCollection.h"

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "BackupContainer.h"
#include "fdbclient/BackupContainer.h"
#include "flow/Trace.h"
#include "flow/UnitTest.h"
#include "flow/Hash3.h"

View File

@ -22,9 +22,9 @@
#include "flow/flow.h"
#include "fdbrpc/IAsyncFile.h"
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/NativeAPI.h"
#include "ReadYourWrites.h"
#include "fdbclient/ReadYourWrites.h"
#include <vector>
Future<Optional<int64_t>> timeKeeperEpochsFromVersion(Version const &v, Reference<ReadYourWritesTransaction> const &tr);

View File

@ -22,7 +22,7 @@
#define FDBCLIENT_CLIENTDBINFO_H
#pragma once
#include "MasterProxyInterface.h"
#include "fdbclient/MasterProxyInterface.h"
// ClientDBInfo is all the information needed by a database client to access the database
// It is returned (and kept up to date) by the OpenDatabaseRequest interface of ClusterInterface

View File

@ -22,10 +22,10 @@
#define FDBCLIENT_CLIENTWORKERINTERFACE_H
#pragma once
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
#include "fdbrpc/FailureMonitor.h"
#include "Status.h"
#include "ClientDBInfo.h"
#include "fdbclient/Status.h"
#include "fdbclient/ClientDBInfo.h"
// Streams from WorkerInterface that are safe and useful to call from a client.
// A ClientWorkerInterface is embedded as the first element of a WorkerInterface.

View File

@ -22,11 +22,11 @@
#define FDBCLIENT_ClusterInterface_H
#pragma once
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
#include "fdbrpc/FailureMonitor.h"
#include "Status.h"
#include "ClientDBInfo.h"
#include "ClientWorkerInterface.h"
#include "fdbclient/Status.h"
#include "fdbclient/ClientDBInfo.h"
#include "fdbclient/ClientWorkerInterface.h"
struct ClusterInterface {
RequestStream< struct OpenDatabaseRequest > openDatabase;

View File

@ -22,7 +22,7 @@
#define FLOW_FDBCLIENT_COMMITTRANSACTION_H
#pragma once
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
static const char * typeString[] = { "SetValue", "ClearRange", "AddValue", "DebugKeyRange", "DebugKey", "NoOp", "And", "Or", "Xor", "AppendIfFits", "AvailableForReuse", "Reserved_For_LogProtocolMessage", "Max", "Min", "SetVersionstampedKey", "SetVersionstampedValue", "ByteMin", "ByteMax", "MinV2", "AndV2" };

View File

@ -22,7 +22,7 @@
#define FDBCLIENT_COORDINATIONINTERFACE_H
#pragma once
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
#include "fdbrpc/fdbrpc.h"
#include "fdbrpc/Locality.h"

View File

@ -18,15 +18,15 @@
* limitations under the License.
*/
#include "BackupAgent.h"
#include "fdbclient/BackupAgent.h"
#include <ctime>
#include <climits>
#include "fdbrpc/IAsyncFile.h"
#include "flow/genericactors.actor.h"
#include "flow/Hash3.h"
#include <numeric>
#include "ManagementAPI.h"
#include "KeyBackedTypes.h"
#include "fdbclient/ManagementAPI.h"
#include "fdbclient/KeyBackedTypes.h"
const Key DatabaseBackupAgent::keyAddPrefix = LiteralStringRef("add_prefix");
const Key DatabaseBackupAgent::keyRemovePrefix = LiteralStringRef("remove_prefix");

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "DatabaseConfiguration.h"
#include "fdbclient/DatabaseConfiguration.h"
#include "fdbclient/SystemData.h"
DatabaseConfiguration::DatabaseConfiguration()

View File

@ -22,14 +22,14 @@
#define DatabaseContext_h
#pragma once
#include "NativeAPI.h"
#include "KeyRangeMap.h"
#include "MasterProxyInterface.h"
#include "ClientDBInfo.h"
#include "fdbclient/NativeAPI.h"
#include "fdbclient/KeyRangeMap.h"
#include "fdbclient/MasterProxyInterface.h"
#include "fdbclient/ClientDBInfo.h"
#include "fdbrpc/QueueModel.h"
#include "fdbrpc/MultiInterface.h"
#include "flow/TDMetric.actor.h"
#include "EventTypes.actor.h"
#include "fdbclient/EventTypes.actor.h"
#include "fdbrpc/ContinuousSample.h"
class LocationInfo : public MultiInterface<StorageServerInterface> {

View File

@ -23,7 +23,7 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FDBCLIENT_EVENTTYPES_ACTOR_G_H)
#define FDBCLIENT_EVENTTYPES_ACTOR_G_H
#include "EventTypes.actor.g.h"
#include "fdbclient/EventTypes.actor.g.h"
#elif !defined(FDBCLIENT_EVENTTYPES_ACTOR_H)
#define FDBCLIENT_EVENTTYPESS_ACTOR_H

View File

@ -22,7 +22,7 @@
#define FDBCLIENT_FDBTYPES_H
#include "flow/flow.h"
#include "Knobs.h"
#include "fdbclient/Knobs.h"
using std::vector;
using std::pair;

View File

@ -18,9 +18,9 @@
* limitations under the License.
*/
#include "FailureMonitorClient.h"
#include "fdbclient/FailureMonitorClient.h"
#include "fdbrpc/FailureMonitor.h"
#include "ClusterInterface.h"
#include "fdbclient/ClusterInterface.h"
struct FailureMonitorClientState : ReferenceCounted<FailureMonitorClientState> {
std::set<NetworkAddress> knownAddrs;

View File

@ -18,12 +18,12 @@
* limitations under the License.
*/
#include "BackupAgent.h"
#include "BackupContainer.h"
#include "DatabaseContext.h"
#include "ManagementAPI.h"
#include "Status.h"
#include "KeyBackedTypes.h"
#include "fdbclient/BackupAgent.h"
#include "fdbclient/BackupContainer.h"
#include "fdbclient/DatabaseContext.h"
#include "fdbclient/ManagementAPI.h"
#include "fdbclient/Status.h"
#include "fdbclient/KeyBackedTypes.h"
#include <ctime>
#include <climits>

View File

@ -22,8 +22,8 @@
#define FDBCLIENT_ICLIENTAPI_H
#pragma once
#include "FDBOptions.g.h"
#include "FDBTypes.h"
#include "fdbclient/FDBOptions.g.h"
#include "fdbclient/FDBTypes.h"
#include "flow/ThreadHelper.actor.h"

View File

@ -1,4 +1,4 @@
#include "JsonBuilder.h"
#include "fdbclient/JsonBuilder.h"
#include <iostream>
JsonBuilderObject JsonBuilder::makeMessage(const char *name, const char *description) {

View File

@ -23,8 +23,8 @@
#include <utility>
#include <vector>
#include "ReadYourWrites.h"
#include "Subspace.h"
#include "fdbclient/ReadYourWrites.h"
#include "fdbclient/Subspace.h"
#include "flow/genericactors.actor.h"
// Codec is a utility struct to convert a type to and from a Tuple. It is used by the template

View File

@ -18,11 +18,11 @@
* limitations under the License.
*/
#include "KeyRangeMap.h"
#include "NativeAPI.h"
#include "CommitTransaction.h"
#include "FDBTypes.h"
#include "ReadYourWrites.h"
#include "fdbclient/KeyRangeMap.h"
#include "fdbclient/NativeAPI.h"
#include "fdbclient/CommitTransaction.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/ReadYourWrites.h"
void KeyRangeActorMap::getRangesAffectedByInsertion( const KeyRangeRef& keys, vector< KeyRange >& affectedRanges ) {
auto s = map.rangeContaining( keys.begin );

View File

@ -23,12 +23,12 @@
#pragma once
#include "flow/flow.h"
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
#include "boost/range.hpp"
#include "flow/IndexedSet.h"
#include "SystemData.h"
#include "fdbclient/SystemData.h"
#include "fdbrpc/RangeMap.h"
#include "Knobs.h"
#include "fdbclient/Knobs.h"
using boost::iterator_range;

View File

@ -18,9 +18,9 @@
* limitations under the License.
*/
#include "Knobs.h"
#include "FDBTypes.h"
#include "SystemData.h"
#include "fdbclient/Knobs.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/SystemData.h"
ClientKnobs const* CLIENT_KNOBS = new ClientKnobs();

View File

@ -18,14 +18,14 @@
* limitations under the License.
*/
#include "ManagementAPI.h"
#include "fdbclient/ManagementAPI.h"
#include "SystemData.h"
#include "NativeAPI.h"
#include "CoordinationInterface.h"
#include "DatabaseContext.h"
#include "fdbclient/SystemData.h"
#include "fdbclient/NativeAPI.h"
#include "fdbclient/CoordinationInterface.h"
#include "fdbclient/DatabaseContext.h"
#include "fdbrpc/simulator.h"
#include "StatusClient.h"
#include "fdbclient/StatusClient.h"
#include "flow/UnitTest.h"
#include "fdbrpc/ReplicationPolicy.h"
#include "fdbrpc/Replication.h"

View File

@ -31,11 +31,11 @@ standard API and some knowledge of the contents of the system key space.
#include <string>
#include <map>
#include "NativeAPI.h"
#include "Status.h"
#include "ReadYourWrites.h"
#include "DatabaseConfiguration.h"
#include "MonitorLeader.h"
#include "fdbclient/NativeAPI.h"
#include "fdbclient/Status.h"
#include "fdbclient/ReadYourWrites.h"
#include "fdbclient/DatabaseConfiguration.h"
#include "fdbclient/MonitorLeader.h"
// ConfigurationResult enumerates normal outcomes of changeConfig() and various error
// conditions specific to it. changeConfig may also throw an Error to report other problems.

View File

@ -22,9 +22,9 @@
#define FDBCLIENT_MASTERPROXYINTERFACE_H
#pragma once
#include "FDBTypes.h"
#include "StorageServerInterface.h"
#include "CommitTransaction.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/StorageServerInterface.h"
#include "fdbclient/CommitTransaction.h"
struct MasterProxyInterface {
enum { LocationAwareLoadBalance = 1 };

View File

@ -20,6 +20,6 @@
#pragma once
#include "NativeAPI.h"
#include "fdbclient/NativeAPI.h"
Future<Void> runMetrics( Future<Database> const& fcx, Key const& metricsPrefix );

View File

@ -18,8 +18,8 @@
* limitations under the License.
*/
#include "MonitorLeader.h"
#include "CoordinationInterface.h"
#include "fdbclient/MonitorLeader.h"
#include "fdbclient/CoordinationInterface.h"
#include "flow/ActorCollection.h"
#include "flow/UnitTest.h"
#include "fdbrpc/genericactors.actor.h"

View File

@ -22,8 +22,8 @@
#define FDBCLIENT_MONITORLEADER_H
#pragma once
#include "FDBTypes.h"
#include "CoordinationInterface.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/CoordinationInterface.h"
#define CLUSTER_FILE_ENV_VAR_NAME "FDB_CLUSTER_FILE"

View File

@ -18,9 +18,9 @@
* limitations under the License.
*/
#include "MultiVersionTransaction.h"
#include "MultiVersionAssignmentVars.h"
#include "ThreadSafeTransaction.h"
#include "fdbclient/MultiVersionTransaction.h"
#include "fdbclient/MultiVersionAssignmentVars.h"
#include "fdbclient/ThreadSafeTransaction.h"
#include "flow/Platform.h"
#include "flow/UnitTest.h"

View File

@ -22,9 +22,9 @@
#define FDBCLIENT_MULTIVERSIONTRANSACTION_H
#pragma once
#include "FDBOptions.g.h"
#include "FDBTypes.h"
#include "IClientApi.h"
#include "fdbclient/FDBOptions.g.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/IClientApi.h"
#include "flow/ThreadHelper.actor.h"

View File

@ -22,8 +22,8 @@
#define FLOW_FDBCLIENT_MUTATIONLIST_H
#pragma once
#include "FDBTypes.h"
#include "CommitTransaction.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/CommitTransaction.h"
struct MutationListRef {
// Represents an ordered, but not random-access, list of mutations that can be O(1) deserialized and

View File

@ -18,23 +18,23 @@
* limitations under the License.
*/
#include "DatabaseContext.h"
#include "NativeAPI.h"
#include "Atomic.h"
#include "fdbclient/DatabaseContext.h"
#include "fdbclient/NativeAPI.h"
#include "fdbclient/Atomic.h"
#include "flow/Platform.h"
#include "flow/ActorCollection.h"
#include "SystemData.h"
#include "fdbclient/SystemData.h"
#include "fdbrpc/LoadBalance.h"
#include "StorageServerInterface.h"
#include "MasterProxyInterface.h"
#include "ClusterInterface.h"
#include "FailureMonitorClient.h"
#include "fdbclient/StorageServerInterface.h"
#include "fdbclient/MasterProxyInterface.h"
#include "fdbclient/ClusterInterface.h"
#include "fdbclient/FailureMonitorClient.h"
#include "flow/DeterministicRandom.h"
#include "KeyRangeMap.h"
#include "fdbclient/KeyRangeMap.h"
#include "flow/SystemMonitor.h"
#include "MutationList.h"
#include "CoordinationInterface.h"
#include "MonitorLeader.h"
#include "fdbclient/MutationList.h"
#include "fdbclient/CoordinationInterface.h"
#include "fdbclient/MonitorLeader.h"
#include "fdbrpc/TLSConnection.h"
#include "flow/Knobs.h"
#include "fdbclient/Knobs.h"

View File

@ -24,12 +24,12 @@
#include "flow/flow.h"
#include "flow/TDMetric.actor.h"
#include "FDBTypes.h"
#include "MasterProxyInterface.h"
#include "FDBOptions.g.h"
#include "CoordinationInterface.h"
#include "ClusterInterface.h"
#include "ClientLogEvents.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/MasterProxyInterface.h"
#include "fdbclient/FDBOptions.g.h"
#include "fdbclient/CoordinationInterface.h"
#include "fdbclient/ClusterInterface.h"
#include "fdbclient/ClientLogEvents.h"
// Incomplete types that are reference counted
class DatabaseContext;

View File

@ -22,7 +22,7 @@
#define FDBCLIENT_NOTIFIED_H
#pragma once
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
#include "flow/TDMetric.actor.h"
struct NotifiedVersion {

View File

@ -18,8 +18,8 @@
* limitations under the License.
*/
#include "RYWIterator.h"
#include "KeyRangeMap.h"
#include "fdbclient/RYWIterator.h"
#include "fdbclient/KeyRangeMap.h"
#include "flow/UnitTest.h"
const RYWIterator::SEGMENT_TYPE RYWIterator::typeMap[12] = {

View File

@ -22,8 +22,8 @@
#define FDBCLIENT_RYWITERATOR_H
#pragma once
#include "SnapshotCache.h"
#include "WriteMap.h"
#include "fdbclient/SnapshotCache.h"
#include "fdbclient/WriteMap.h"
class RYWIterator {
public:

View File

@ -18,11 +18,11 @@
* limitations under the License.
*/
#include "ReadYourWrites.h"
#include "Atomic.h"
#include "DatabaseContext.h"
#include "StatusClient.h"
#include "MonitorLeader.h"
#include "fdbclient/ReadYourWrites.h"
#include "fdbclient/Atomic.h"
#include "fdbclient/DatabaseContext.h"
#include "fdbclient/StatusClient.h"
#include "fdbclient/MonitorLeader.h"
#include "flow/Util.h"
#include "flow/actorcompiler.h" // This must be the last #include.

View File

@ -22,9 +22,9 @@
#define FDBCLIENT_READYOURWRITES_H
#pragma once
#include "NativeAPI.h"
#include "KeyRangeMap.h"
#include "RYWIterator.h"
#include "fdbclient/NativeAPI.h"
#include "fdbclient/KeyRangeMap.h"
#include "fdbclient/RYWIterator.h"
#include <list>
//SOMEDAY: Optimize getKey to avoid using getRange

View File

@ -23,12 +23,12 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FDBCLIENT_RUNTRANSACTION_ACTOR_G_H)
#define FDBCLIENT_RUNTRANSACTION_ACTOR_G_H
#include "RunTransaction.actor.g.h"
#include "fdbclient/RunTransaction.actor.g.h"
#elif !defined(FDBCLIENT_RUNTRANSACTION_ACTOR_H)
#define FDBCLIENT_RUNTRANSACTION_ACTOR_H
#include "flow/flow.h"
#include "ReadYourWrites.h"
#include "fdbclient/ReadYourWrites.h"
#include "flow/actorcompiler.h" // This must be the last #include.
ACTOR template < class Function >

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "Schemas.h"
#include "fdbclient/Schemas.h"
const KeyRef JSONSchemas::statusSchema = LiteralStringRef(R"statusSchema(
{

View File

@ -24,7 +24,7 @@
#pragma once
#include "flow/flow.h"
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
struct JSONSchemas {
static const KeyRef statusSchema;

View File

@ -22,9 +22,9 @@
#define FDBCLIENT_SNAPSHOTCACHE_H
#pragma once
#include "FDBTypes.h"
#include "NativeAPI.h"
#include "SystemData.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/NativeAPI.h"
#include "fdbclient/SystemData.h"
#include "flow/IndexedSet.h"
struct ExtStringRef {

View File

@ -19,14 +19,14 @@
*/
#include "flow/flow.h"
#include "CoordinationInterface.h"
#include "MonitorLeader.h"
#include "FailureMonitorClient.h"
#include "ClusterInterface.h"
#include "StatusClient.h"
#include "Status.h"
#include "json_spirit/json_spirit_writer_template.h"
#include "json_spirit/json_spirit_reader_template.h"
#include "fdbclient/CoordinationInterface.h"
#include "fdbclient/MonitorLeader.h"
#include "fdbclient/FailureMonitorClient.h"
#include "fdbclient/ClusterInterface.h"
#include "fdbclient/StatusClient.h"
#include "fdbclient/Status.h"
#include "fdbclient/json_spirit/json_spirit_writer_template.h"
#include "fdbclient/json_spirit/json_spirit_reader_template.h"
#include "fdbrpc/genericactors.actor.h"
json_spirit::mValue readJSONStrictly(const std::string &s) {

View File

@ -22,7 +22,7 @@
#define FDBCLIENT_STATUSCLIENT_H
#include "flow/flow.h"
#include "Status.h"
#include "fdbclient/Status.h"
class StatusClient {
public:

View File

@ -22,7 +22,7 @@
#define FDBCLIENT_STORAGESERVERINTERFACE_H
#pragma once
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
#include "fdbrpc/Locality.h"
#include "fdbrpc/QueueModel.h"
#include "fdbrpc/fdbrpc.h"

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "Subspace.h"
#include "fdbclient/Subspace.h"
Subspace::Subspace(Tuple const& tuple, StringRef const& rawPrefix){
StringRef packed = tuple.pack();

View File

@ -24,7 +24,7 @@
#pragma once
#include "flow/flow.h"
#include "Tuple.h"
#include "fdbclient/Tuple.h"
class Subspace {
public:

View File

@ -18,8 +18,8 @@
* limitations under the License.
*/
#include "SystemData.h"
#include "StorageServerInterface.h"
#include "fdbclient/SystemData.h"
#include "fdbclient/StorageServerInterface.h"
#include "flow/TDMetric.actor.h"
const KeyRef systemKeysPrefix = LiteralStringRef("\xff");

View File

@ -24,8 +24,8 @@
// Functions and constants documenting the organization of the reserved keyspace in the database beginning with "\xFF"
#include "FDBTypes.h"
#include "StorageServerInterface.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/StorageServerInterface.h"
extern const KeyRangeRef normalKeys; // '' to systemKeys.begin
extern const KeyRangeRef systemKeys; // [FF] to [FF][FF]

View File

@ -18,8 +18,8 @@
* limitations under the License.
*/
#include "TaskBucket.h"
#include "ReadYourWrites.h"
#include "fdbclient/TaskBucket.h"
#include "fdbclient/ReadYourWrites.h"
Reference<TaskFuture> Task::getDoneFuture(Reference<FutureBucket> fb) {
return fb->unpack(params[reservedTaskParamKeyDone]);

View File

@ -26,11 +26,11 @@
#include "flow/IDispatched.h"
#include "flow/genericactors.actor.h"
#include "FDBTypes.h"
#include "NativeAPI.h"
#include "RunTransaction.actor.h"
#include "Subspace.h"
#include "KeyBackedTypes.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/NativeAPI.h"
#include "fdbclient/RunTransaction.actor.h"
#include "fdbclient/Subspace.h"
#include "fdbclient/KeyBackedTypes.h"
class FutureBucket;
class TaskFuture;

View File

@ -18,9 +18,9 @@
* limitations under the License.
*/
#include "ThreadSafeTransaction.h"
#include "ReadYourWrites.h"
#include "DatabaseContext.h"
#include "fdbclient/ThreadSafeTransaction.h"
#include "fdbclient/ReadYourWrites.h"
#include "fdbclient/DatabaseContext.h"
#include <new>
#ifndef WIN32

View File

@ -22,10 +22,10 @@
#define FDBCLIENT_THREADSAFETRANSACTION_H
#pragma once
#include "ReadYourWrites.h"
#include "fdbclient/ReadYourWrites.h"
#include "flow/ThreadHelper.actor.h"
#include "ClusterInterface.h"
#include "IClientApi.h"
#include "fdbclient/ClusterInterface.h"
#include "fdbclient/IClientApi.h"
class ThreadSafeDatabase;

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "Tuple.h"
#include "fdbclient/Tuple.h"
static size_t find_string_terminator(const StringRef data, size_t offset) {
size_t i = offset;

View File

@ -24,7 +24,7 @@
#pragma once
#include "flow/flow.h"
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
struct Tuple {
Tuple() {}

View File

@ -23,7 +23,7 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FDBCLIENT_VERSIONEDMAP_ACTOR_G_H)
#define FDBCLIENT_VERSIONEDMAP_ACTOR_G_H
#include "VersionedMap.actor.g.h"
#include "fdbclient/VersionedMap.actor.g.h"
#elif !defined(FDBCLIENT_VERSIONEDMAP_ACTOR_H)
#define FDBCLIENT_VERSIONEDMAP_ACTOR_H

View File

@ -24,9 +24,9 @@
#include "flow/flow.h"
#include "flow/IndexedSet.h"
#include "FDBTypes.h"
#include "fdbclient/FDBTypes.h"
#include "flow/IRandom.h"
#include "VersionedMap.actor.h"
#include "fdbclient/VersionedMap.actor.h"
// PTree is a persistent balanced binary tree implementation. It is based on a treap as a way to guarantee O(1) space for node insertion (rotating is asymptotically cheap),
// but the constant factors are very large.

View File

@ -22,10 +22,10 @@
#define FDBCLIENT_WRITEMAP_H
#pragma once
#include "FDBTypes.h"
#include "VersionedMap.h"
#include "SnapshotCache.h"
#include "Atomic.h"
#include "fdbclient/FDBTypes.h"
#include "fdbclient/VersionedMap.h"
#include "fdbclient/SnapshotCache.h"
#include "fdbclient/Atomic.h"
struct RYWMutation {
Optional<ValueRef> value;

View File

@ -72,7 +72,7 @@ namespace vexillographer
outFile.WriteLine("#define FDBCLIENT_FDBOPTIONS_G_H");
outFile.WriteLine("#pragma once");
outFile.WriteLine();
outFile.WriteLine("#include \"FDBOptions.h\"");
outFile.WriteLine("#include \"fdbclient/FDBOptions.h\"");
outFile.WriteLine();
foreach (Scope s in Enum.GetValues(typeof(Scope)))
{
@ -88,7 +88,7 @@ namespace vexillographer
{
TextWriter outFile = new StreamWriter(cFile);
outFile.NewLine = "\n";
outFile.WriteLine("#include \"FDBOptions.g.h\"");
outFile.WriteLine("#include \"fdbclient/FDBOptions.g.h\"");
outFile.WriteLine();
foreach (Scope s in Enum.GetValues(typeof(Scope)))
{

View File

@ -68,7 +68,7 @@
#include "flow/SimpleOpt.h"
#include "SimpleIni.h"
#include "../versions.h"
#include "versions.h"
#ifdef __linux__
typedef fd_set* fdb_fd_set;

View File

@ -20,7 +20,7 @@
// THIS FILE WAS GENERATED BY actorFuzz.py; DO NOT MODIFY IT DIRECTLY
#include "ActorFuzz.h"
#include "fdbrpc/ActorFuzz.h"
#ifndef WIN32
ACTOR Future<int> actorFuzz0( FutureStream<int> inputStream, PromiseStream<int> outputStream, Future<Void> error ) {

View File

@ -18,8 +18,8 @@
* limitations under the License.
*/
#include "AsyncFileBlobStore.actor.h"
#include "AsyncFileReadAhead.actor.h"
#include "fdbrpc/AsyncFileBlobStore.actor.h"
#include "fdbrpc/AsyncFileReadAhead.actor.h"
#include "flow/UnitTest.h"
Future<int64_t> AsyncFileBlobStoreRead::size() {

View File

@ -23,20 +23,20 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FDBRPC_ASYNCFILEBLOBSTORE_ACTOR_G_H)
#define FDBRPC_ASYNCFILEBLOBSTORE_ACTOR_G_H
#include "AsyncFileBlobStore.actor.g.h"
#include "fdbrpc/AsyncFileBlobStore.actor.g.h"
#elif !defined(FDBRPC_ASYNCFILEBLOBSTORE_ACTOR_H)
#define FDBRPC_ASYNCFILEBLOBSTORE_ACTOR_H
#include <sstream>
#include <time.h>
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
#include "flow/serialize.h"
#include "flow/Net2Packet.h"
#include "IRateControl.h"
#include "BlobStore.h"
#include "md5/md5.h"
#include "libb64/encode.h"
#include "fdbrpc/IRateControl.h"
#include "fdbrpc/BlobStore.h"
#include "fdbrpc/md5/md5.h"
#include "fdbrpc/libb64/encode.h"
#include "flow/actorcompiler.h" // This must be the last #include.
ACTOR template<typename T> static Future<T> joinErrorGroup(Future<T> f, Promise<Void> p) {

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "AsyncFileCached.actor.h"
#include "fdbrpc/AsyncFileCached.actor.h"
//Page caches used in non-simulated environments
Optional<Reference<EvictablePageCache>> pc4k, pc64k;

View File

@ -23,12 +23,12 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FLOW_ASYNCFILECACHED_ACTOR_G_H)
#define FLOW_ASYNCFILECACHED_ACTOR_G_H
#include "AsyncFileCached.actor.g.h"
#include "fdbrpc/AsyncFileCached.actor.g.h"
#elif !defined(FLOW_ASYNCFILECACHED_ACTOR_H)
#define FLOW_ASYNCFILECACHED_ACTOR_H
#include "flow/flow.h"
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
#include "flow/Knobs.h"
#include "flow/TDMetric.actor.h"
#include "flow/network.h"

View File

@ -27,17 +27,17 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FLOW_ASYNCFILEEIO_ACTOR_G_H)
#define FLOW_ASYNCFILEEIO_ACTOR_G_H
#include "AsyncFileEIO.actor.g.h"
#include "fdbrpc/AsyncFileEIO.actor.g.h"
#elif !defined(FLOW_ASYNCFILEEIO_ACTOR_H)
#define FLOW_ASYNCFILEEIO_ACTOR_H
#include <fcntl.h>
#include <sys/stat.h>
#include "eio.h"
#include "fdbrpc/libeio/eio.h"
#include "flow/flow.h"
#include "flow/ThreadHelper.actor.h"
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
#include "flow/TDMetric.actor.h"
#include "flow/actorcompiler.h" // This must be the last #include.

View File

@ -24,11 +24,11 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FLOW_ASYNCFILEKAIO_ACTOR_G_H)
#define FLOW_ASYNCFILEKAIO_ACTOR_G_H
#include "AsyncFileKAIO.actor.g.h"
#include "fdbrpc/AsyncFileKAIO.actor.g.h"
#elif !defined(FLOW_ASYNCFILEKAIO_ACTOR_H)
#define FLOW_ASYNCFILEKAIO_ACTOR_H
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/eventfd.h>

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "AsyncFileNonDurable.actor.h"
#include "fdbrpc/AsyncFileNonDurable.actor.h"
std::map<std::string, Future<Void>> AsyncFileNonDurable::filesBeingDeleted;

View File

@ -23,16 +23,16 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FLOW_ASYNCFILENONDURABLE_ACTOR_G_H)
#define FLOW_ASYNCFILENONDURABLE_ACTOR_G_H
#include "AsyncFileNonDurable.actor.g.h"
#include "fdbrpc/AsyncFileNonDurable.actor.g.h"
#elif !defined(FLOW_ASYNCFILENONDURABLE_ACTOR_H)
#define FLOW_ASYNCFILENONDURABLE_ACTOR_H
#include "flow/flow.h"
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
#include "flow/ActorCollection.h"
#include "simulator.h"
#include "TraceFileIO.h"
#include "RangeMap.h"
#include "fdbrpc/simulator.h"
#include "fdbrpc/TraceFileIO.h"
#include "fdbrpc/RangeMap.h"
#include "flow/actorcompiler.h" // This must be the last #include.
#undef max

View File

@ -23,12 +23,12 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FDBRPC_ASYNCFILEREADAHEAD_ACTOR_G_H)
#define FDBRPC_ASYNCFILEREADAHEAD_ACTOR_G_H
#include "AsyncFileReadAhead.actor.g.h"
#include "fdbrpc/AsyncFileReadAhead.actor.g.h"
#elif !defined(FDBRPC_ASYNCFILEREADAHEAD_ACTOR_H)
#define FDBRPC_ASYNCFILEREADAHEAD_ACTOR_H
#include "flow/flow.h"
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
#include "flow/actorcompiler.h" // This must be the last #include.
// Read-only file type that wraps another file instance, reads in large blocks, and reads ahead of the actual range requested

View File

@ -27,7 +27,7 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FLOW_ASYNCFILEWINASIO_ACTOR_G_H)
#define FLOW_ASYNCFILEWINASIO_ACTOR_G_H
#include "AsyncFileWinASIO.actor.g.h"
#include "fdbrpc/AsyncFileWinASIO.actor.g.h"
#elif !defined(FLOW_ASYNCFILEWINASIO_ACTOR_H)
#define FLOW_ASYNCFILEWINASIO_ACTOR_H

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "AsyncFileWriteChecker.h"
#include "fdbrpc/AsyncFileWriteChecker.h"
int AsyncFileWriteChecker::checksumHistoryBudget;
int AsyncFileWriteChecker::checksumHistoryPageSize = 4096;

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
#if VALGRIND
#include <memcheck.h>

View File

@ -18,15 +18,15 @@
* limitations under the License.
*/
#include "BlobStore.h"
#include "fdbrpc/BlobStore.h"
#include "md5/md5.h"
#include "libb64/encode.h"
#include "sha1/SHA1.h"
#include "time.h"
#include "fdbrpc/md5/md5.h"
#include "fdbrpc/libb64/encode.h"
#include "fdbrpc/sha1/SHA1.h"
#include <time.h>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
json_spirit::mObject BlobStoreEndpoint::Stats::getJSON() {
json_spirit::mObject o;

View File

@ -25,9 +25,9 @@
#include "flow/flow.h"
#include "flow/Net2Packet.h"
#include "fdbclient/Knobs.h"
#include "IRateControl.h"
#include "HTTP.h"
#include "JSONDoc.h"
#include "fdbrpc/IRateControl.h"
#include "fdbrpc/HTTP.h"
#include "fdbrpc/JSONDoc.h"
// Representation of all the things you need to connect to a blob store instance with some credentials.
// Reference counted because a very large number of them could be needed.

View File

@ -22,7 +22,7 @@
#define FLOW_ENDPOINT_GROUP_H
#pragma once
#include "flow.h"
#include "fdbrpc/flow.h"
// EndpointGroup makes it easier to implement backward compatibility for interface serialization
// It also provides a central place to implement more compact serialization for a group of related endpoints in the future.

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "FailureMonitor.h"
#include "fdbrpc/FailureMonitor.h"
#include "flow/actorcompiler.h" // This must be the last #include.
ACTOR Future<Void> waitForStateEqual( IFailureMonitor* monitor, Endpoint endpoint, FailureStatus status ) {

View File

@ -24,7 +24,7 @@
#include "flow/flow.h"
#include "flow/IndexedSet.h"
#include "FlowTransport.h" // Endpoint
#include "fdbrpc/FlowTransport.h" // Endpoint
using std::vector;

View File

@ -23,8 +23,8 @@
#include "flow/UnitTest.h"
#include "flow/DeterministicRandom.h"
#include "flow/IThreadPool.h"
#include "fdbrpc.h"
#include "IAsyncFile.h"
#include "fdbrpc/fdbrpc.h"
#include "fdbrpc/IAsyncFile.h"
#include "flow/actorcompiler.h" // This must be the last #include.
void forceLinkFlowTests() {}

View File

@ -19,15 +19,15 @@
*/
#include "flow/flow.h"
#include "FlowTransport.h"
#include "genericactors.actor.h"
#include "fdbrpc.h"
#include "fdbrpc/FlowTransport.h"
#include "fdbrpc/genericactors.actor.h"
#include "fdbrpc/fdbrpc.h"
#include "flow/Net2Packet.h"
#include "flow/ActorCollection.h"
#include "flow/TDMetric.actor.h"
#include "FailureMonitor.h"
#include "crc32c.h"
#include "simulator.h"
#include "fdbrpc/FailureMonitor.h"
#include "fdbrpc/crc32c.h"
#include "fdbrpc/simulator.h"
#if VALGRIND
#include <memcheck.h>

View File

@ -18,11 +18,11 @@
* limitations under the License.
*/
#include "HTTP.h"
#include "md5/md5.h"
#include "libb64/encode.h"
#include "fdbrpc/HTTP.h"
#include "fdbrpc/md5/md5.h"
#include "fdbrpc/libb64/encode.h"
#include <cctype>
#include "xml2json.hpp"
#include "fdbrpc/xml2json.hpp"
namespace HTTP {

View File

@ -20,7 +20,7 @@
#include "flow/flow.h"
#include "flow/Net2Packet.h"
#include "IRateControl.h"
#include "fdbrpc/IRateControl.h"
#include "fdbclient/Knobs.h"
namespace HTTP {

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
#include "flow/Error.h"
#include "flow/Knobs.h"
#include "flow/Platform.h"

View File

@ -23,18 +23,18 @@
// When actually compiled (NO_INTELLISENSE), include the generated version of this file. In intellisense use the source version.
#if defined(NO_INTELLISENSE) && !defined(FLOW_LOADBALANCE_ACTOR_G_H)
#define FLOW_LOADBALANCE_ACTOR_G_H
#include "LoadBalance.actor.g.h"
#include "fdbrpc/LoadBalance.actor.g.h"
#elif !defined(FLOW_LOADBALANCE_ACTOR_H)
#define FLOW_LOADBALANCE_ACTOR_H
#include "flow/flow.h"
#include "flow/Knobs.h"
#include "FailureMonitor.h"
#include "fdbrpc.h"
#include "Locality.h"
#include "QueueModel.h"
#include "MultiInterface.h"
#include "fdbrpc/FailureMonitor.h"
#include "fdbrpc/fdbrpc.h"
#include "fdbrpc/Locality.h"
#include "fdbrpc/QueueModel.h"
#include "fdbrpc/MultiInterface.h"
#include "flow/actorcompiler.h" // This must be the last #include.
using std::vector;

View File

@ -18,4 +18,4 @@
* limitations under the License.
*/
#include "LoadBalance.actor.h"
#include "fdbrpc/LoadBalance.actor.h"

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "Locality.h"
#include "fdbrpc/Locality.h"
const UID LocalityData::UNSET_ID = UID(0x0ccb4e0feddb5583, 0x010f6b77d9d10ece);
const StringRef LocalityData::keyProcessId = LiteralStringRef("processid");

View File

@ -19,7 +19,7 @@
*/
#include "Net2FileSystem.h"
#include "fdbrpc/Net2FileSystem.h"
// Define boost::asio::io_service
#include <algorithm>
@ -31,13 +31,13 @@
#define FILESYSTEM_IMPL 1
#include "AsyncFileCached.actor.h"
#include "AsyncFileEIO.actor.h"
#include "AsyncFileWinASIO.actor.h"
#include "AsyncFileKAIO.actor.h"
#include "fdbrpc/AsyncFileCached.actor.h"
#include "fdbrpc/AsyncFileEIO.actor.h"
#include "fdbrpc/AsyncFileWinASIO.actor.h"
#include "fdbrpc/AsyncFileKAIO.actor.h"
#include "flow/AsioReactor.h"
#include "flow/Platform.h"
#include "AsyncFileWriteChecker.h"
#include "fdbrpc/AsyncFileWriteChecker.h"
// Opens a file for asynchronous I/O
Future< Reference<class IAsyncFile> > Net2FileSystem::open( std::string filename, int64_t flags, int64_t mode )

View File

@ -22,7 +22,7 @@
#define FLOW_NET2FILESYSTEM_H
#pragma once
#include "IAsyncFile.h"
#include "fdbrpc/IAsyncFile.h"
class Net2FileSystem : public IAsyncFileSystem {
public:

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "Platform.h"
#include "fdbrpc/Platform.h"
#include <algorithm>
#include "flow/ActorCollection.h"
#include "flow/FaultInjection.h"

View File

@ -18,8 +18,8 @@
* limitations under the License.
*/
#include "QueueModel.h"
#include "LoadBalance.h"
#include "fdbrpc/QueueModel.h"
#include "fdbrpc/LoadBalance.h"
void QueueModel::endRequest( uint64_t id, double latency, double penalty, double delta, bool clean, bool futureVersion ) {
auto& d = data[id];

View File

@ -23,7 +23,7 @@
#pragma once
#include "flow/flow.h"
#include "Smoother.h"
#include "fdbrpc/Smoother.h"
#include "flow/Knobs.h"
#include "flow/ActorCollection.h"

View File

@ -18,4 +18,4 @@
* limitations under the License.
*/
#include "Replication.h"
#include "fdbrpc/Replication.h"

View File

@ -23,8 +23,8 @@
#pragma once
#include "flow/flow.h"
#include "Locality.h"
#include "ReplicationPolicy.h"
#include "fdbrpc/Locality.h"
#include "fdbrpc/ReplicationPolicy.h"
struct LocalitySet : public ReferenceCounted<LocalitySet> {
public:

View File

@ -18,8 +18,8 @@
* limitations under the License.
*/
#include "ReplicationPolicy.h"
#include "Replication.h"
#include "fdbrpc/ReplicationPolicy.h"
#include "fdbrpc/Replication.h"
#include "flow/UnitTest.h"

View File

@ -23,7 +23,7 @@
#pragma once
#include "flow/flow.h"
#include "ReplicationTypes.h"
#include "fdbrpc/ReplicationTypes.h"
template <class Ar>
void serializeReplicationPolicy(Ar& ar, IRepPolicyRef& policy);

View File

@ -18,7 +18,7 @@
* limitations under the License.
*/
#include "ReplicationTypes.h"
#include "fdbrpc/ReplicationTypes.h"
// Map of attribute hash to name
const std::vector<LocalityEntry> emptyEntryArray;

Some files were not shown because too many files have changed in this diff Show More