2018-05-04 06:48:10 +08:00
|
|
|
set(FDBSERVER_SRCS
|
|
|
|
ApplyMetadataMutation.h
|
2019-07-17 05:57:24 +08:00
|
|
|
ApplyMetadataMutation.cpp
|
2019-04-25 06:12:37 +08:00
|
|
|
BackupInterface.h
|
2019-10-01 04:16:28 +08:00
|
|
|
BackupProgress.actor.cpp
|
|
|
|
BackupProgress.actor.h
|
2019-10-03 05:47:09 +08:00
|
|
|
BackupWorker.actor.cpp
|
2021-08-05 05:47:18 +08:00
|
|
|
BlobManager.actor.cpp
|
|
|
|
BlobManagerInterface.h
|
2021-08-24 03:14:48 +08:00
|
|
|
BlobWorker.actor.cpp
|
2022-01-07 04:15:51 +08:00
|
|
|
ClusterController.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
ClusterController.actor.cpp
|
2022-01-07 04:15:51 +08:00
|
|
|
ClusterRecovery.actor.h
|
|
|
|
ClusterRecovery.actor.cpp
|
2021-05-12 07:57:05 +08:00
|
|
|
ConfigBroadcaster.actor.cpp
|
|
|
|
ConfigBroadcaster.h
|
2021-05-14 02:22:25 +08:00
|
|
|
ConfigDatabaseUnitTests.actor.cpp
|
2021-04-26 08:20:02 +08:00
|
|
|
ConfigFollowerInterface.cpp
|
|
|
|
ConfigFollowerInterface.h
|
2021-07-19 09:25:06 +08:00
|
|
|
ConfigNode.actor.cpp
|
|
|
|
ConfigNode.h
|
2018-05-04 06:48:10 +08:00
|
|
|
ConflictSet.h
|
|
|
|
CoordinatedState.actor.cpp
|
|
|
|
CoordinatedState.h
|
|
|
|
Coordination.actor.cpp
|
|
|
|
CoordinationInterface.h
|
|
|
|
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
|
2022-02-04 16:39:42 +08:00
|
|
|
DDTeamCollection.actor.cpp
|
|
|
|
DDTeamCollection.h
|
2018-05-04 06:48:10 +08:00
|
|
|
DiskQueue.actor.cpp
|
2022-01-14 03:11:01 +08:00
|
|
|
EncryptKeyProxyInterface.h
|
2022-01-28 02:54:54 +08:00
|
|
|
EncryptKeyProxy.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
fdbserver.actor.cpp
|
2019-04-21 03:58:24 +08:00
|
|
|
FDBExecHelper.actor.cpp
|
|
|
|
FDBExecHelper.actor.h
|
2020-07-15 15:37:41 +08:00
|
|
|
GrvProxyServer.actor.cpp
|
2021-05-18 06:31:03 +08:00
|
|
|
IConfigConsumer.cpp
|
2021-05-12 07:57:05 +08:00
|
|
|
IConfigConsumer.h
|
2018-05-04 06:48:10 +08:00
|
|
|
IDiskQueue.h
|
2020-11-16 04:04:36 +08:00
|
|
|
IKeyValueContainer.h
|
2018-05-04 06:48:10 +08:00
|
|
|
IKeyValueStore.h
|
2018-12-14 07:52:27 +08:00
|
|
|
IPager.h
|
2018-05-04 06:48:10 +08:00
|
|
|
KeyValueStoreCompressTestData.actor.cpp
|
|
|
|
KeyValueStoreMemory.actor.cpp
|
2020-06-16 00:45:36 +08:00
|
|
|
KeyValueStoreRocksDB.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
KeyValueStoreSQLite.actor.cpp
|
2022-03-16 04:03:23 +08:00
|
|
|
ServerCheckpoint.actor.cpp
|
|
|
|
ServerCheckpoint.actor.h
|
|
|
|
RocksDBCheckpointUtils.actor.cpp
|
|
|
|
RocksDBCheckpointUtils.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2021-04-17 08:58:00 +08:00
|
|
|
LocalConfiguration.actor.cpp
|
|
|
|
LocalConfiguration.h
|
2018-05-04 06:48:10 +08:00
|
|
|
LogProtocolMessage.h
|
|
|
|
LogRouter.actor.cpp
|
2021-09-09 02:22:54 +08:00
|
|
|
LogSystem.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
LogSystem.h
|
2021-09-09 08:23:43 +08:00
|
|
|
LogSystemConfig.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
LogSystemConfig.h
|
|
|
|
LogSystemDiskQueueAdapter.actor.cpp
|
|
|
|
LogSystemDiskQueueAdapter.h
|
|
|
|
LogSystemPeekCursor.actor.cpp
|
|
|
|
MasterInterface.h
|
2020-11-16 03:32:03 +08:00
|
|
|
MetricLogger.actor.cpp
|
2021-01-26 08:09:32 +08:00
|
|
|
MetricLogger.actor.h
|
2020-09-11 08:44:15 +08:00
|
|
|
CommitProxyServer.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
masterserver.actor.cpp
|
2020-03-27 19:16:15 +08:00
|
|
|
MutationTracking.h
|
|
|
|
MutationTracking.cpp
|
2019-02-18 10:55:52 +08:00
|
|
|
MoveKeys.actor.h
|
2020-03-27 19:16:15 +08:00
|
|
|
MoveKeys.actor.cpp
|
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
|
2019-10-03 07:41:00 +08:00
|
|
|
OldTLogServer_6_2.actor.cpp
|
2021-05-24 09:01:50 +08:00
|
|
|
OnDemandStore.actor.cpp
|
|
|
|
OnDemandStore.h
|
2021-05-18 04:41:18 +08:00
|
|
|
PaxosConfigConsumer.actor.cpp
|
|
|
|
PaxosConfigConsumer.h
|
2020-08-06 03:20:52 +08:00
|
|
|
ProxyCommitData.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
pubsub.actor.cpp
|
|
|
|
pubsub.h
|
|
|
|
QuietDatabase.actor.cpp
|
|
|
|
QuietDatabase.h
|
2020-11-16 03:35:42 +08:00
|
|
|
RadixTree.h
|
2022-02-15 04:35:50 +08:00
|
|
|
Ratekeeper.h
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2020-07-17 06:30:27 +08:00
|
|
|
RestoreController.actor.h
|
|
|
|
RestoreController.actor.cpp
|
2019-05-17 10:42:44 +08:00
|
|
|
RestoreApplier.actor.h
|
|
|
|
RestoreApplier.actor.cpp
|
|
|
|
RestoreLoader.actor.h
|
|
|
|
RestoreLoader.actor.cpp
|
2019-08-02 09:20:42 +08:00
|
|
|
RestoreWorker.actor.h
|
2019-06-01 02:09:31 +08:00
|
|
|
RestoreWorker.actor.cpp
|
2021-05-31 02:51:47 +08:00
|
|
|
RestoreWorkerInterface.actor.cpp
|
|
|
|
RestoreWorkerInterface.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
Resolver.actor.cpp
|
|
|
|
ResolverInterface.h
|
2021-06-04 06:10:04 +08:00
|
|
|
RoleLineage.actor.h
|
|
|
|
RoleLineage.actor.cpp
|
2020-05-02 11:15:31 +08:00
|
|
|
ServerDBInfo.actor.h
|
2018-05-04 06:48:10 +08:00
|
|
|
ServerDBInfo.h
|
2021-06-04 06:10:04 +08:00
|
|
|
SigStack.cpp
|
2022-03-11 04:06:49 +08:00
|
|
|
SimEncryptVaultProxy.actor.h
|
|
|
|
SimEncryptVaultProxy.actor.cpp
|
2021-05-12 07:57:05 +08:00
|
|
|
SimpleConfigConsumer.actor.cpp
|
2021-05-13 08:23:32 +08:00
|
|
|
SimpleConfigConsumer.h
|
2018-05-04 06:48:10 +08:00
|
|
|
SimulatedCluster.actor.cpp
|
|
|
|
SimulatedCluster.h
|
|
|
|
SkipList.cpp
|
2020-08-28 06:11:16 +08:00
|
|
|
SpanContextMessage.h
|
2018-05-04 06:48:10 +08:00
|
|
|
Status.actor.cpp
|
|
|
|
Status.h
|
2019-11-13 05:01:29 +08:00
|
|
|
StorageCache.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
StorageMetrics.actor.h
|
|
|
|
StorageMetrics.h
|
|
|
|
storageserver.actor.cpp
|
|
|
|
TagPartitionedLogSystem.actor.cpp
|
2021-09-08 06:29:33 +08:00
|
|
|
TagPartitionedLogSystem.actor.h
|
2022-02-15 08:03:37 +08:00
|
|
|
TagThrottler.actor.cpp
|
|
|
|
TagThrottler.h
|
2018-05-04 06:48:10 +08:00
|
|
|
template_fdb.h
|
2022-02-05 02:59:01 +08:00
|
|
|
TCInfo.actor.cpp
|
|
|
|
TCInfo.h
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2021-06-03 23:31:16 +08:00
|
|
|
TSSMappingUtil.actor.h
|
2021-05-29 02:15:52 +08:00
|
|
|
TSSMappingUtil.actor.cpp
|
2018-12-14 07:52:27 +08:00
|
|
|
VersionedBTree.actor.cpp
|
2021-01-16 11:29:14 +08:00
|
|
|
VFSAsync.h
|
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
|
2021-07-11 07:55:30 +08:00
|
|
|
workloads/ClogSingleConnection.actor.cpp
|
2021-08-03 05:03:20 +08:00
|
|
|
workloads/ConfigIncrement.actor.cpp
|
2020-10-11 11:10:12 +08:00
|
|
|
workloads/BackupToBlob.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/BackupToDBAbort.actor.cpp
|
|
|
|
workloads/BackupToDBCorrectness.actor.cpp
|
|
|
|
workloads/BackupToDBUpgrade.actor.cpp
|
2020-12-25 09:57:53 +08:00
|
|
|
workloads/BlobStoreWorkload.h
|
2021-08-27 02:47:31 +08:00
|
|
|
workloads/BlobGranuleVerifier.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/BulkLoad.actor.cpp
|
|
|
|
workloads/BulkSetup.actor.h
|
2020-02-25 09:26:20 +08:00
|
|
|
workloads/Cache.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/ChangeConfig.actor.cpp
|
2021-07-21 06:28:46 +08:00
|
|
|
workloads/ClearSingleRange.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2021-09-04 03:06:13 +08:00
|
|
|
workloads/ChangeFeeds.actor.cpp
|
2019-05-23 03:44:32 +08:00
|
|
|
workloads/DataDistributionMetrics.actor.cpp
|
2021-10-02 05:11:24 +08:00
|
|
|
workloads/DataLossRecovery.actor.cpp
|
2022-03-16 04:03:23 +08:00
|
|
|
workloads/PhysicalShardMove.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2021-07-30 16:32:43 +08:00
|
|
|
workloads/DiskFailureInjection.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/DummyWorkload.actor.cpp
|
Upgrade AES 128 GCM -> AES 256, StreamCipher code refactor (#6314)
* Upgrade AES 128 GCM -> AES 256, StreamCipher code refactor
Major changes proposed are:
1. Refactor StreamCipher code to enable instantiation of
multiple encryption keys. However, code still retains
a globalEncryption key semantics used in Backup file
encryption usecase.
2. Enhance StreamCipher to provide HMAC signature digest
generation. Further, the class implements HMAC encryption
key derivation function.
3. Upgrade StreamCipher to use AES 256 GCM mode from currently
supported AES 128 GCM mode.
Note: The code changes the encryption key size, however, the
feature is NOT currently in use, hence, should be OK.
3. Add EncryptionOps validation and benchmark toml supported
workload, it does the following:
a. Allow user to configure encrypt-decrypt of a fixed size
buffer or variable size buffer [100, 512K]
b. Allow user to configure number of interactions of the runs,
in each iteration: generate random data, derive an encryption
key using HMAC SHA256 method, encrypt data and
then decrypt data. It collects following metrics:
i) time taken to derive encryption key.
ii) time taken to encrypt the buffer.
iii) time taken to decrypt the buffer.
iv) total bytes encrypted and/or decrypted
c. Along with stats it basic basic validations on the encrypted
and decrypted buffer
d. On completion for test, records the above mentioned metrics
in trace files.
2022-02-01 09:52:44 +08:00
|
|
|
workloads/EncryptionOps.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
|
2021-06-20 00:47:13 +08:00
|
|
|
workloads/GetRangeStream.actor.cpp
|
2020-07-01 12:56:21 +08:00
|
|
|
workloads/HealthMetricsApi.actor.cpp
|
2022-02-01 06:25:38 +08:00
|
|
|
workloads/HighContentionPrefixAllocatorWorkload.actor.cpp
|
2020-08-20 01:37:39 +08:00
|
|
|
workloads/IncrementalBackup.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2020-08-19 04:41:55 +08:00
|
|
|
workloads/LockDatabaseFrequently.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
|
2021-11-05 05:34:14 +08:00
|
|
|
workloads/MiniCycle.actor.cpp
|
2021-08-10 05:36:07 +08:00
|
|
|
workloads/MutationLogReaderCorrectness.actor.cpp
|
2022-03-11 02:05:44 +08:00
|
|
|
workloads/GetMappedRange.actor.cpp
|
2021-07-11 07:55:30 +08:00
|
|
|
workloads/ParallelRestore.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/Performance.actor.cpp
|
|
|
|
workloads/Ping.actor.cpp
|
2020-04-04 02:33:24 +08:00
|
|
|
workloads/PopulateTPCC.actor.cpp
|
2020-09-29 01:58:49 +08:00
|
|
|
workloads/ProtocolVersion.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/PubSubMultiples.actor.cpp
|
|
|
|
workloads/QueuePush.actor.cpp
|
|
|
|
workloads/RandomClogging.actor.cpp
|
|
|
|
workloads/RandomMoveKeys.actor.cpp
|
|
|
|
workloads/RandomSelector.actor.cpp
|
2020-06-20 16:36:42 +08:00
|
|
|
workloads/ReadAfterWrite.actor.cpp
|
2020-12-25 09:57:53 +08:00
|
|
|
workloads/ReadHotDetection.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/ReadWrite.actor.cpp
|
|
|
|
workloads/RemoveServersSafely.actor.cpp
|
2020-03-25 00:48:03 +08:00
|
|
|
workloads/ReportConflictingKeys.actor.cpp
|
2020-10-05 09:11:04 +08:00
|
|
|
workloads/RestoreBackup.actor.cpp
|
2020-10-11 11:10:12 +08:00
|
|
|
workloads/RestoreFromBlob.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2021-12-01 05:03:19 +08:00
|
|
|
workloads/SidebandSingle.actor.cpp
|
2020-09-29 04:19:48 +08:00
|
|
|
workloads/SimpleAtomicAdd.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/SlowTaskWorkload.actor.cpp
|
2019-02-28 07:40:33 +08:00
|
|
|
workloads/SnapTest.actor.cpp
|
2020-03-10 01:45:57 +08:00
|
|
|
workloads/SpecialKeySpaceCorrectness.actor.cpp
|
2021-09-16 01:55:39 +08:00
|
|
|
workloads/StreamingRangeRead.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/StatusWorkload.actor.cpp
|
|
|
|
workloads/Storefront.actor.cpp
|
|
|
|
workloads/StreamingRead.actor.cpp
|
2020-10-05 09:11:04 +08:00
|
|
|
workloads/SubmitBackup.actor.cpp
|
2020-05-05 01:15:18 +08:00
|
|
|
workloads/TagThrottleApi.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2020-04-04 02:33:24 +08:00
|
|
|
workloads/TPCC.actor.cpp
|
|
|
|
workloads/TPCCWorkload.h
|
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
|
2020-08-07 04:06:50 +08:00
|
|
|
workloads/UDPWorkload.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
workloads/VersionStamp.actor.cpp
|
|
|
|
workloads/WatchAndWait.actor.cpp
|
|
|
|
workloads/Watches.actor.cpp
|
2021-02-10 01:32:37 +08:00
|
|
|
workloads/WatchesSameKeyCorrectness.actor.cpp
|
2018-05-04 06:48:10 +08:00
|
|
|
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
|
2020-07-01 12:56:21 +08:00
|
|
|
workloads/WriteDuringRead.actor.cpp
|
|
|
|
workloads/WriteTagThrottling.actor.cpp
|
|
|
|
)
|
2018-05-04 06:48:10 +08:00
|
|
|
|
2021-11-25 04:12:22 +08:00
|
|
|
if(${COROUTINE_IMPL} STREQUAL libcoro)
|
2021-02-18 00:23:41 +08:00
|
|
|
list(APPEND FDBSERVER_SRCS CoroFlowCoro.actor.cpp)
|
|
|
|
else()
|
|
|
|
list(APPEND FDBSERVER_SRCS CoroFlow.actor.cpp)
|
|
|
|
endif()
|
|
|
|
|
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)
|
|
|
|
|
2020-06-11 05:07:49 +08:00
|
|
|
if (WITH_ROCKSDB_EXPERIMENTAL)
|
2020-06-04 04:32:39 +08:00
|
|
|
add_definitions(-DSSD_ROCKSDB_EXPERIMENTAL)
|
2020-06-06 06:58:45 +08:00
|
|
|
|
2020-06-09 00:22:28 +08:00
|
|
|
include(CompileRocksDB)
|
2020-10-07 02:22:03 +08:00
|
|
|
# CompileRocksDB sets `lz4_LIBRARIES` to be the shared lib, we want to link
|
|
|
|
# statically, so find the static library here.
|
|
|
|
find_library(lz4_STATIC_LIBRARIES
|
|
|
|
NAMES liblz4.a REQUIRED)
|
2022-01-28 02:54:54 +08:00
|
|
|
if (WITH_LIBURING)
|
|
|
|
find_package(uring)
|
|
|
|
endif()
|
2020-06-04 04:32:39 +08:00
|
|
|
endif()
|
2020-05-22 23:02:51 +08:00
|
|
|
|
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})
|
2020-06-04 04:32:39 +08:00
|
|
|
|
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)
|
2020-06-11 05:07:49 +08:00
|
|
|
if (WITH_ROCKSDB_EXPERIMENTAL)
|
2020-06-11 04:53:53 +08:00
|
|
|
add_dependencies(fdbserver rocksdb)
|
2022-01-28 02:54:54 +08:00
|
|
|
if(WITH_LIBURING)
|
|
|
|
target_include_directories(fdbserver PRIVATE ${ROCKSDB_INCLUDE_DIR} ${uring_INCLUDE_DIR})
|
|
|
|
target_link_libraries(fdbserver PRIVATE fdbclient fdb_sqlite ${ROCKSDB_LIBRARIES} ${uring_LIBRARIES} ${lz4_STATIC_LIBRARIES})
|
|
|
|
target_compile_definitions(fdbserver PRIVATE BOOST_ASIO_HAS_IO_URING=1 BOOST_ASIO_DISABLE_EPOLL=1)
|
|
|
|
else()
|
|
|
|
target_include_directories(fdbserver PRIVATE ${ROCKSDB_INCLUDE_DIR})
|
|
|
|
target_link_libraries(fdbserver PRIVATE fdbclient fdb_sqlite ${ROCKSDB_LIBRARIES} ${lz4_STATIC_LIBRARIES})
|
|
|
|
target_compile_definitions(fdbserver PRIVATE)
|
|
|
|
endif()
|
2020-06-04 04:32:39 +08:00
|
|
|
else()
|
|
|
|
target_link_libraries(fdbserver PRIVATE fdbclient fdb_sqlite)
|
|
|
|
endif()
|
|
|
|
|
2021-02-06 00:21:45 +08:00
|
|
|
target_link_libraries(fdbserver PRIVATE toml11_target jemalloc)
|
2021-07-31 01:21:07 +08:00
|
|
|
# target_compile_definitions(fdbserver PRIVATE -DENABLE_SAMPLING)
|
2020-07-06 07:18:08 +08:00
|
|
|
|
2019-04-03 08:34:29 +08:00
|
|
|
if (GPERFTOOLS_FOUND)
|
|
|
|
target_link_libraries(fdbserver PRIVATE gperftools)
|
|
|
|
endif()
|
2018-05-04 06:48:10 +08:00
|
|
|
|
2021-01-26 08:09:32 +08:00
|
|
|
if(NOT OPEN_FOR_IDE)
|
|
|
|
if(GENERATE_DEBUG_PACKAGES)
|
|
|
|
fdb_install(TARGETS fdbserver DESTINATION sbin COMPONENT server)
|
|
|
|
else()
|
|
|
|
add_custom_target(prepare_fdbserver_install ALL DEPENDS strip_only_fdbserver)
|
|
|
|
fdb_install(PROGRAMS ${CMAKE_BINARY_DIR}/packages/bin/fdbserver DESTINATION sbin COMPONENT server)
|
|
|
|
endif()
|
2020-05-22 04:39:55 +08:00
|
|
|
endif()
|