2018-05-04 06:48:10 +08:00
|
|
|
set(FDBSERVER_SRCS
|
|
|
|
ApplyMetadataMutation.h
|
2019-07-17 05:57:24 +08:00
|
|
|
ApplyMetadataMutation.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
ClusterController.actor.cpp
|
|
|
|
ClusterRecruitmentInterface.h
|
|
|
|
ConflictSet.h
|
|
|
|
CoordinatedState.actor.cpp
|
|
|
|
CoordinatedState.h
|
|
|
|
Coordination.actor.cpp
|
|
|
|
CoordinationInterface.h
|
|
|
|
CoroFlow.actor.cpp
|
|
|
|
CoroFlow.h
|
|
|
|
DataDistribution.actor.cpp
|
2019-03-06 02:29:37 +08:00
|
|
|
DataDistribution.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
DataDistributionQueue.actor.cpp
|
|
|
|
DataDistributionTracker.actor.cpp
|
2019-01-18 01:47:14 +08:00
|
|
|
DataDistributorInterface.h
|
2018-05-04 06:48:10 +08:00
|
|
|
DBCoreState.h
|
|
|
|
DiskQueue.actor.cpp
|
|
|
|
fdbserver.actor.cpp
|
2019-04-21 03:58:24 +08:00
|
|
|
FDBExecHelper.actor.cpp
|
|
|
|
FDBExecHelper.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
IDiskQueue.h
|
|
|
|
IKeyValueStore.h
|
2018-12-14 07:52:27 +08:00
|
|
|
IPager.h
|
|
|
|
IVersionedStore.h
|
|
|
|
IndirectShadowPager.actor.cpp
|
|
|
|
IndirectShadowPager.h
|
2018-05-04 06:48:10 +08:00
|
|
|
KeyValueStoreCompressTestData.actor.cpp
|
|
|
|
KeyValueStoreMemory.actor.cpp
|
|
|
|
KeyValueStoreSQLite.actor.cpp
|
|
|
|
Knobs.cpp
|
|
|
|
Knobs.h
|
2019-02-15 00:08:44 +08:00
|
|
|
LatencyBandConfig.cpp
|
|
|
|
LatencyBandConfig.h
|
2018-05-04 06:48:10 +08:00
|
|
|
LeaderElection.actor.cpp
|
|
|
|
LeaderElection.h
|
|
|
|
LogProtocolMessage.h
|
|
|
|
LogRouter.actor.cpp
|
|
|
|
LogSystem.h
|
|
|
|
LogSystemConfig.h
|
|
|
|
LogSystemDiskQueueAdapter.actor.cpp
|
|
|
|
LogSystemDiskQueueAdapter.h
|
|
|
|
LogSystemPeekCursor.actor.cpp
|
|
|
|
MasterInterface.h
|
|
|
|
MasterProxyServer.actor.cpp
|
|
|
|
masterserver.actor.cpp
|
2018-12-14 07:52:27 +08:00
|
|
|
MemoryPager.actor.cpp
|
|
|
|
MemoryPager.h
|
2018-05-04 06:48:10 +08:00
|
|
|
MoveKeys.actor.cpp
|
2019-02-18 10:55:52 +08:00
|
|
|
MoveKeys.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
networktest.actor.cpp
|
|
|
|
NetworkTest.h
|
2019-02-08 09:02:28 +08:00
|
|
|
OldTLogServer_4_6.actor.cpp
|
2019-02-08 09:02:29 +08:00
|
|
|
OldTLogServer_6_0.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
Orderer.actor.h
|
|
|
|
pubsub.actor.cpp
|
|
|
|
pubsub.h
|
|
|
|
QuietDatabase.actor.cpp
|
|
|
|
QuietDatabase.h
|
|
|
|
Ratekeeper.actor.cpp
|
2019-02-15 08:24:46 +08:00
|
|
|
RatekeeperInterface.h
|
2018-05-04 06:48:10 +08:00
|
|
|
RecoveryState.h
|
2019-05-17 10:42:44 +08:00
|
|
|
RestoreCommon.actor.h
|
|
|
|
RestoreCommon.actor.cpp
|
|
|
|
RestoreUtil.h
|
|
|
|
RestoreUtil.actor.cpp
|
|
|
|
RestoreRoleCommon.actor.h
|
|
|
|
RestoreRoleCommon.actor.cpp
|
|
|
|
RestoreMaster.actor.h
|
|
|
|
RestoreMaster.actor.cpp
|
|
|
|
RestoreApplier.actor.h
|
|
|
|
RestoreApplier.actor.cpp
|
|
|
|
RestoreLoader.actor.h
|
|
|
|
RestoreLoader.actor.cpp
|
2019-06-01 02:09:31 +08:00
|
|
|
RestoreWorker.actor.cpp
|
2019-05-23 04:30:33 +08:00
|
|
|
RestoreWorkerInterface.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
Resolver.actor.cpp
|
|
|
|
ResolverInterface.h
|
|
|
|
ServerDBInfo.h
|
|
|
|
SimulatedCluster.actor.cpp
|
|
|
|
SimulatedCluster.h
|
|
|
|
SkipList.cpp
|
|
|
|
Status.actor.cpp
|
|
|
|
Status.h
|
|
|
|
StorageMetrics.actor.h
|
|
|
|
StorageMetrics.h
|
|
|
|
storageserver.actor.cpp
|
|
|
|
TagPartitionedLogSystem.actor.cpp
|
|
|
|
template_fdb.h
|
|
|
|
tester.actor.cpp
|
2019-02-18 11:25:16 +08:00
|
|
|
TesterInterface.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
TLogInterface.h
|
|
|
|
TLogServer.actor.cpp
|
2018-12-14 07:52:27 +08:00
|
|
|
VersionedBTree.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
VFSAsync.cpp
|
|
|
|
WaitFailure.actor.cpp
|
|
|
|
WaitFailure.h
|
|
|
|
worker.actor.cpp
|
2019-02-18 11:13:26 +08:00
|
|
|
WorkerInterface.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/ApiCorrectness.actor.cpp
|
|
|
|
workloads/ApiWorkload.actor.cpp
|
|
|
|
workloads/ApiWorkload.h
|
|
|
|
workloads/AsyncFile.actor.h
|
|
|
|
workloads/AsyncFile.cpp
|
|
|
|
workloads/AsyncFileCorrectness.actor.cpp
|
|
|
|
workloads/AsyncFileRead.actor.cpp
|
|
|
|
workloads/AsyncFileWrite.actor.cpp
|
|
|
|
workloads/AtomicOps.actor.cpp
|
|
|
|
workloads/AtomicOpsApiCorrectness.actor.cpp
|
|
|
|
workloads/AtomicRestore.actor.cpp
|
|
|
|
workloads/AtomicSwitchover.actor.cpp
|
|
|
|
workloads/BackgroundSelectors.actor.cpp
|
|
|
|
workloads/BackupCorrectness.actor.cpp
|
2019-05-17 10:42:44 +08:00
|
|
|
workloads/BackupAndParallelRestoreCorrectness.actor.cpp
|
|
|
|
workloads/ParallelRestore.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/BackupToDBAbort.actor.cpp
|
|
|
|
workloads/BackupToDBCorrectness.actor.cpp
|
|
|
|
workloads/BackupToDBUpgrade.actor.cpp
|
|
|
|
workloads/BulkLoad.actor.cpp
|
|
|
|
workloads/BulkSetup.actor.h
|
|
|
|
workloads/ChangeConfig.actor.cpp
|
|
|
|
workloads/ClientTransactionProfileCorrectness.actor.cpp
|
2019-05-07 09:16:44 +08:00
|
|
|
workloads/TriggerRecovery.actor.cpp
|
2019-06-15 02:35:38 +08:00
|
|
|
workloads/SuspendProcesses.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/CommitBugCheck.actor.cpp
|
|
|
|
workloads/ConfigureDatabase.actor.cpp
|
|
|
|
workloads/ConflictRange.actor.cpp
|
|
|
|
workloads/ConsistencyCheck.actor.cpp
|
|
|
|
workloads/CpuProfiler.actor.cpp
|
|
|
|
workloads/Cycle.actor.cpp
|
|
|
|
workloads/DDBalance.actor.cpp
|
|
|
|
workloads/DDMetrics.actor.cpp
|
2019-07-09 05:28:19 +08:00
|
|
|
workloads/DDMetricsExclude.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/DiskDurability.actor.cpp
|
|
|
|
workloads/DiskDurabilityTest.actor.cpp
|
|
|
|
workloads/DummyWorkload.actor.cpp
|
2019-06-06 04:24:06 +08:00
|
|
|
workloads/ExternalWorkload.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/FastTriggeredWatches.actor.cpp
|
|
|
|
workloads/FileSystem.actor.cpp
|
|
|
|
workloads/Fuzz.cpp
|
|
|
|
workloads/FuzzApiCorrectness.actor.cpp
|
|
|
|
workloads/Increment.actor.cpp
|
|
|
|
workloads/IndexScan.actor.cpp
|
|
|
|
workloads/Inventory.actor.cpp
|
|
|
|
workloads/KVStoreTest.actor.cpp
|
2019-03-07 09:31:13 +08:00
|
|
|
workloads/KillRegion.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/LockDatabase.actor.cpp
|
2019-03-14 12:27:23 +08:00
|
|
|
workloads/LocalRatekeeper.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/LogMetrics.actor.cpp
|
|
|
|
workloads/LowLatency.actor.cpp
|
|
|
|
workloads/MachineAttrition.actor.cpp
|
2019-05-10 06:35:30 +08:00
|
|
|
workloads/Mako.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/MemoryKeyValueStore.cpp
|
|
|
|
workloads/MemoryKeyValueStore.h
|
|
|
|
workloads/MemoryLifetime.actor.cpp
|
|
|
|
workloads/MetricLogging.actor.cpp
|
|
|
|
workloads/Performance.actor.cpp
|
|
|
|
workloads/Ping.actor.cpp
|
|
|
|
workloads/PubSubMultiples.actor.cpp
|
|
|
|
workloads/QueuePush.actor.cpp
|
|
|
|
workloads/RandomClogging.actor.cpp
|
|
|
|
workloads/RandomMoveKeys.actor.cpp
|
|
|
|
workloads/RandomSelector.actor.cpp
|
|
|
|
workloads/ReadWrite.actor.cpp
|
|
|
|
workloads/RemoveServersSafely.actor.cpp
|
|
|
|
workloads/Rollback.actor.cpp
|
|
|
|
workloads/RyowCorrectness.actor.cpp
|
|
|
|
workloads/RYWDisable.actor.cpp
|
|
|
|
workloads/RYWPerformance.actor.cpp
|
|
|
|
workloads/SaveAndKill.actor.cpp
|
|
|
|
workloads/SelectorCorrectness.actor.cpp
|
|
|
|
workloads/Serializability.actor.cpp
|
|
|
|
workloads/Sideband.actor.cpp
|
|
|
|
workloads/SlowTaskWorkload.actor.cpp
|
2019-02-28 07:40:33 +08:00
|
|
|
workloads/SnapTest.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/StatusWorkload.actor.cpp
|
|
|
|
workloads/Storefront.actor.cpp
|
|
|
|
workloads/StreamingRead.actor.cpp
|
|
|
|
workloads/TargetedKill.actor.cpp
|
|
|
|
workloads/TaskBucketCorrectness.actor.cpp
|
|
|
|
workloads/ThreadSafety.actor.cpp
|
2019-02-05 05:04:25 +08:00
|
|
|
workloads/Throttling.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/Throughput.actor.cpp
|
|
|
|
workloads/TimeKeeperCorrectness.actor.cpp
|
2019-04-23 06:48:47 +08:00
|
|
|
workloads/DifferentClustersSameRV.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/UnitPerf.actor.cpp
|
|
|
|
workloads/UnitTests.actor.cpp
|
|
|
|
workloads/Unreadable.actor.cpp
|
|
|
|
workloads/VersionStamp.actor.cpp
|
|
|
|
workloads/WatchAndWait.actor.cpp
|
|
|
|
workloads/Watches.actor.cpp
|
|
|
|
workloads/WorkerErrors.actor.cpp
|
2019-02-18 11:18:30 +08:00
|
|
|
workloads/workloads.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/WriteBandwidth.actor.cpp
|
|
|
|
workloads/WriteDuringRead.actor.cpp)
|
|
|
|
|
2019-04-10 05:51:32 +08:00
|
|
|
add_library(fdb_sqlite STATIC
|
2019-04-05 00:59:08 +08:00
|
|
|
sqlite/btree.h
|
|
|
|
sqlite/hash.h
|
|
|
|
sqlite/sqlite3.h
|
|
|
|
sqlite/sqlite3ext.h
|
|
|
|
sqlite/sqliteInt.h
|
|
|
|
sqlite/sqliteLimit.h
|
|
|
|
sqlite/sqlite3.amalgamation.c)
|
|
|
|
|
2019-04-10 02:16:45 +08:00
|
|
|
# Suppress warnings in sqlite since it's third party
|
|
|
|
if(NOT WIN32)
|
2019-04-17 08:43:46 +08:00
|
|
|
target_compile_definitions(fdb_sqlite PRIVATE $<$<CONFIG:Debug>:NDEBUG>)
|
|
|
|
target_compile_options(fdb_sqlite BEFORE PRIVATE -w) # disable warnings for third party
|
2019-04-01 08:57:43 +08:00
|
|
|
endif()
|
|
|
|
|
2018-05-04 06:48:10 +08:00
|
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/workloads)
|
|
|
|
|
2019-02-09 08:51:13 +08:00
|
|
|
add_flow_target(EXECUTABLE NAME fdbserver SRCS ${FDBSERVER_SRCS})
|
2018-05-04 06:48:10 +08:00
|
|
|
target_include_directories(fdbserver PRIVATE
|
2019-06-06 04:24:06 +08:00
|
|
|
${CMAKE_SOURCE_DIR}/bindings/c
|
2019-06-08 05:57:56 +08:00
|
|
|
${CMAKE_BINARY_DIR}/bindings/c
|
2018-05-04 06:48:10 +08:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/workloads
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/workloads)
|
2019-04-10 05:51:32 +08:00
|
|
|
target_link_libraries(fdbserver PRIVATE fdbclient fdb_sqlite)
|
2019-04-03 08:34:29 +08:00
|
|
|
if (GPERFTOOLS_FOUND)
|
|
|
|
add_compile_definitions(USE_GPERFTOOLS)
|
|
|
|
target_link_libraries(fdbserver PRIVATE gperftools)
|
|
|
|
endif()
|
2018-05-04 06:48:10 +08:00
|
|
|
|
2019-02-28 12:17:11 +08:00
|
|
|
fdb_install(TARGETS fdbserver DESTINATION sbin COMPONENT server)
|