foundationdb/fdbclient
Ben Collins 32f2731773
Fix static initialization order for maxAllowedVersion (#6570)
* Fix static initialization order for maxAllowedVersion

As it was defined, maxAllowedVerion was statically and globally initialized with a dependency on CLIENT_KNOBS. Initialization order was not spelled out and therefore this relied on chance specifics of order. In some cases these two were constructed in the wrong order and led to a segfault on startup. Fix by deferring initialization of maxAllowedVerion.

* Fix formatting with clang-format
2022-03-11 11:02:35 -08:00
..
json_spirit Replace <boost/bind.hpp> with <boost/bind/bind.hpp>. 2021-11-18 14:00:13 -08:00
libb64 apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
md5 apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
rapidjson apply formatting with clang 13 2021-12-02 05:13:59 +00:00
rapidxml apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
sha1 apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
vexillographer code review changes: additional test checks, cleanup extra code, mark internal option hidden 2022-02-10 17:01:09 -05:00
ActorLineageProfiler.cpp Fix some common sampling crashes at high sampling frequencies 2021-09-30 17:25:09 -07:00
ActorLineageProfiler.h Enable mismatched-tags clang warning 2021-11-01 14:18:31 -07:00
AnnotateActor.cpp Revert "Merge pull request #4802 from sfc-gh-ljoswiak/revert/actor-lineage" 2021-06-04 13:31:55 -07:00
AnnotateActor.h Disable sampling everywhere except fdbserver 2021-07-27 09:53:23 -07:00
AsyncFileS3BlobStore.actor.cpp apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
AsyncFileS3BlobStore.actor.h Support encryption for blob store backups (not yet tested) 2021-06-26 00:07:27 -07:00
AsyncTaskThread.actor.cpp apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-08-27 17:07:47 -07:00
AsyncTaskThread.h Strengthen /asynctaskthread/add unit test 2021-07-17 20:01:24 -07:00
Atomic.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
AutoPublicAddress.cpp Address comments. 2022-02-22 16:29:59 -08:00
BackupAgent.actor.h Check in the prototype of MutationLogReader. 2021-08-18 14:59:50 -07:00
BackupAgentBase.actor.cpp Fix a bunch of places where we used old-style arguments. Allow hyphens for profiler args. 2021-12-14 09:59:14 -08:00
BackupContainer.actor.cpp Update code base to use fmt 8.1.1 2022-03-04 15:52:06 -08:00
BackupContainer.h Cleanup TODOs for backup, blob code refactor. 2021-10-18 17:37:19 -04:00
BackupContainerAzureBlobStore.actor.cpp apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-08-27 17:07:47 -07:00
BackupContainerAzureBlobStore.h Several BackupContainerAzureBlobStore bug fixes 2021-07-26 22:32:38 -07:00
BackupContainerFileSystem.actor.cpp Enforce that trace event suppression calls happen first when using trace event call chaining. Fix various instances where we weren't following this requirement. 2022-02-24 12:25:52 -08:00
BackupContainerFileSystem.h Update code base to use fmt 8.1.1 2022-03-04 15:52:06 -08:00
BackupContainerLocalDirectory.actor.cpp Merge remote-tracking branch 'origin/master' into fix-more-clang-warnings 2021-07-28 11:51:02 -07:00
BackupContainerLocalDirectory.h Support encryption for blob store backups (not yet tested) 2021-06-26 00:07:27 -07:00
BackupContainerS3BlobStore.actor.cpp added one missed change 2021-07-20 18:30:43 -06:00
BackupContainerS3BlobStore.h Support encryption for blob store backups (not yet tested) 2021-06-26 00:07:27 -07:00
BlobGranuleCommon.h more cleanup before merge 2021-10-18 17:11:14 -05:00
BlobGranuleFiles.cpp Update code base to use fmt 8.1.1 2022-03-04 15:52:06 -08:00
BlobGranuleFiles.h Added FDBResult and made readBlobGranules use it 2021-12-01 16:22:05 -06:00
BlobGranuleReader.actor.cpp Update code base to use fmt 8.1.1 2022-03-04 15:52:06 -08:00
BlobGranuleReader.actor.h Refactored granule materialization code to be called by c client as well as internal granule management 2021-11-03 13:19:07 -05:00
BlobWorkerCommon.h Got basic range reassignment working 2021-09-22 16:48:44 -05:00
BlobWorkerInterface.h Cleanup comments for BlobWorkerInterface. 2021-10-18 17:45:51 -04:00
BuildFlags.h.in Fix macOS compilation issue 2021-01-19 11:21:21 -08:00
CMakeLists.txt Add a tenant parameter to read and commit requests. Store a map of all tenants on commit proxy and storage servers. Add an option to require tenant mode. 2022-03-06 21:54:21 -08:00
ClientBooleanParams.cpp Add FDB_ prefix to BOOLEAN_PARAM macros 2021-07-09 05:42:14 -07:00
ClientBooleanParams.h Add FDB_ prefix to BOOLEAN_PARAM macros 2021-07-09 05:42:14 -07:00
ClientKnobCollection.cpp Add atomicity to knobs 2021-08-23 11:41:00 -07:00
ClientKnobCollection.h Add atomicity to knobs 2021-08-23 11:41:00 -07:00
ClientKnobs.cpp TSS Metrics improvements 2022-03-07 11:20:24 -06:00
ClientKnobs.h TSS Metrics improvements 2022-03-07 11:20:24 -06:00
ClientLogEvents.h Add support for 7.0 and 7.1 in transaction_profiling_analyzer 2022-01-19 14:00:21 -08:00
ClientVersion.h MVC2.0: Refactoring - remove dependency of MVC on Native API 2021-11-03 16:30:18 +01:00
ClientWorkerInterface.h New Disk Delay Logic and ChaosMetrics. 2021-07-28 16:03:37 -07:00
ClusterConnectionFile.actor.cpp Add resolveHostnamesBlocking() in ConnectionString and IClusterConnectionRecord. 2022-01-28 12:20:41 -08:00
ClusterConnectionFile.h Add resolveHostnamesBlocking() in ConnectionString and IClusterConnectionRecord. 2022-01-28 12:20:41 -08:00
ClusterConnectionKey.actor.cpp Add resolveHostnamesBlocking() in ConnectionString and IClusterConnectionRecord. 2022-01-28 12:20:41 -08:00
ClusterConnectionKey.actor.h Add resolveHostnamesBlocking() in ConnectionString and IClusterConnectionRecord. 2022-01-28 12:20:41 -08:00
ClusterConnectionMemoryRecord.actor.cpp Add resolveHostnamesBlocking() in ConnectionString and IClusterConnectionRecord. 2022-01-28 12:20:41 -08:00
ClusterConnectionMemoryRecord.h Add resolveHostnamesBlocking() in ConnectionString and IClusterConnectionRecord. 2022-01-28 12:20:41 -08:00
ClusterInterface.h Adjusted endpoints order to be compatible. 2021-11-11 17:45:08 -08:00
CommitProxyInterface.h Send a version along with GetKeyServerLocationsRequests to allow the proxy to reject missing tenants more quickly. Change the commit proxy tenant map to be unversioned. 2022-03-08 13:33:56 -08:00
CommitTransaction.h Merge branch 'master' into blob_full_clean 2021-10-25 13:38:48 -05:00
ConfigKnobs.cpp Try eliminating warnings in macOS and Windows CI builds. 2022-02-25 19:06:57 -08:00
ConfigKnobs.h Support randomizing configuration database type in simulation 2021-08-09 10:04:35 -07:00
ConfigTransactionInterface.cpp Refactoring well-known endpoint registration 2021-09-21 11:05:31 -06:00
ConfigTransactionInterface.h Don't specify types in format 2022-02-09 13:43:32 -08:00
ConvertUTF.h Move SimpleIni.h to fdbclient 2022-02-07 13:31:04 -08:00
CoordinationInterface.h Move the construction of ConnectionString in changeQuorumChecker() to coordinatorsCommitActor(). 2022-02-24 23:02:29 -08:00
DatabaseBackupAgent.actor.cpp Enforce that trace event suppression calls happen first when using trace event call chaining. Fix various instances where we weren't following this requirement. 2022-02-24 12:25:52 -08:00
DatabaseConfiguration.cpp Add the ability to disable tenants. Server processes verify the ID of tenants being read or written. 2022-03-06 21:54:21 -08:00
DatabaseConfiguration.h Add a tenant parameter to read and commit requests. Store a map of all tenants on commit proxy and storage servers. Add an option to require tenant mode. 2022-03-06 21:54:21 -08:00
DatabaseContext.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
EventTypes.actor.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
FDBOptions.h Enable support for integers in environment variable network options 2021-09-20 11:48:07 -07:00
FDBTypes.cpp Server processes send unknown_tenant responses back to clients, which is meant to be retried after updating the tenant cache. Fix bug where key selectors could be truncated after applying the tenant prefix. 2022-03-06 21:54:21 -08:00
FDBTypes.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
FileBackupAgent.actor.cpp Update code base to use fmt 8.1.1 2022-03-04 15:52:06 -08:00
FluentDSampleIngestor.cpp Fix some common sampling crashes at high sampling frequencies 2021-09-30 17:25:09 -07:00
GenericManagementAPI.actor.h Split the management API into two parts, one that is generic and has no native API dependency and another that does have a native API dependency. 2022-01-28 10:18:23 -08:00
GlobalConfig.actor.cpp Mark various externally exposed system transactions as read/access system keys. Also adjust a few lock aware declarations to read lock aware. 2022-01-27 13:58:33 -08:00
GlobalConfig.actor.h Merge pull request #5026 from sfc-gh-ljoswiak/fixes/alp6 2021-08-11 13:44:17 -07:00
GlobalConfig.h Store global config data on heap 2021-04-14 10:56:33 -07:00
GrvProxyInterface.h assert we never get a stale read version 2021-10-09 16:40:24 -06:00
HTTP.actor.cpp Enforce that trace event suppression calls happen first when using trace event call chaining. Fix various instances where we weren't following this requirement. 2022-02-24 12:25:52 -08:00
HTTP.h Support AWS v4 header for s3 backup and restore 2022-02-07 17:53:05 -08:00
HighContentionPrefixAllocator.actor.h Rename high contention allocator implementation in fdbclient 2022-01-31 14:25:38 -08:00
IClientApi.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
IConfigTransaction.cpp Add IConfigTransaction::createTestPaxos 2021-07-18 19:18:48 -07:00
IConfigTransaction.h Switched BG APIs to transaction instead of database 2021-11-11 08:59:06 -06:00
IKnobCollection.cpp Add assertion to IKnobCollection::setGlobalKnobCollection 2021-11-16 10:41:46 -08:00
IKnobCollection.h FDB compiles on Apple Sillicon 2021-11-10 20:05:38 -07:00
ISingleThreadTransaction.cpp Added ConfigIncrement workload 2021-08-09 10:04:35 -07:00
ISingleThreadTransaction.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
JSONDoc.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
JsonBuilder.cpp apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
JsonBuilder.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
KeyBackedTypes.h createdTime based storage wiggler (#6219) 2022-02-04 15:04:30 -08:00
KeyRangeMap.actor.cpp Enforce std:: specifier rather than using namespace 2021-09-16 19:40:28 -07:00
KeyRangeMap.h Enforce std:: specifier rather than using namespace 2021-09-16 19:40:28 -07:00
Knobs.h initial commit 2021-09-09 14:01:42 -04:00
LocalClientAPI.cpp MVC2.0: Rollback static initialization of the local client API instance 2021-11-10 15:55:33 +01:00
LocalClientAPI.h MVC2.0: Rollback static initialization of the local client API instance 2021-11-10 15:55:33 +01:00
ManagementAPI.actor.cpp Rename OPTIONAL to avoid windows macro conflict 2022-03-08 13:45:29 -08:00
ManagementAPI.actor.h Move the construction of ConnectionString in changeQuorumChecker() to coordinatorsCommitActor(). 2022-02-24 23:02:29 -08:00
MonitorLeader.actor.cpp Add resetConnectionString() function to ClusterConnectionString. 2022-02-24 23:02:29 -08:00
MonitorLeader.h Turn on hostname logic. 2022-02-22 16:29:59 -08:00
MultiVersionAssignmentVars.h Fix -Wreorder-ctor warnings in NativeAPI.actor.cpp and several other files 2021-07-24 00:23:06 -07:00
MultiVersionTransaction.actor.cpp GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
MultiVersionTransaction.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
MutationList.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
MutationLogReader.actor.cpp Address comments. 2021-08-18 14:59:50 -07:00
MutationLogReader.actor.h Add a sentence describing what MutationLogReader does at high level. 2021-08-18 18:23:35 -07:00
NameLineage.cpp Add collector to get running actor name 2021-06-16 18:08:51 -07:00
NameLineage.h Collect actors waiting on disk and network 2021-06-17 16:50:34 -07:00
NativeAPI.actor.cpp GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
NativeAPI.actor.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
Notified.h Avoid creating unnecessary temporary objects 2021-12-01 23:48:34 -08:00
PImpl.h Added PImpl class 2021-08-09 10:04:34 -07:00
ParallelStream.actor.cpp apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-08-27 17:07:47 -07:00
ParallelStream.actor.h parallelStream holds a promiseStream of fragments, so we cannot make it reference counted without introducing a reference counting cycle 2021-06-22 17:45:54 -07:00
PaxosConfigTransaction.actor.cpp Fix client timeout errors 2022-02-09 13:43:33 -08:00
PaxosConfigTransaction.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
ProcessInterface.h Refactoring well-known endpoint registration 2021-09-21 11:05:31 -06:00
RYWIterator.cpp Merge pull request #4729 from sfc-gh-etschannen/feature-bypass-unreadable 2021-05-04 11:35:44 -07:00
RYWIterator.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
ReadYourWrites.actor.cpp GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
ReadYourWrites.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
RestoreInterface.cpp Update copyright headers 2021-06-02 10:32:34 -07:00
RestoreInterface.h Update copyright headers 2021-06-02 10:32:34 -07:00
RunTransaction.actor.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
S3BlobStore.actor.cpp Enforce that trace event suppression calls happen first when using trace event call chaining. Fix various instances where we weren't following this requirement. 2022-02-24 12:25:52 -08:00
S3BlobStore.h Clang format files 2022-02-07 17:53:05 -08:00
Schemas.cpp Add the ability to disable tenants. Server processes verify the ID of tenants being read or written. 2022-03-06 21:54:21 -08:00
Schemas.h MVC2.0: Rollback added code 2022-02-14 13:50:42 -08:00
ServerKnobCollection.cpp Add atomicity to knobs 2021-08-23 11:41:00 -07:00
ServerKnobCollection.h Add atomicity to knobs 2021-08-23 11:41:00 -07:00
ServerKnobs.cpp Introduce a simulate EncryptKeyVaultProxy interface (#6576) 2022-03-10 12:06:49 -08:00
ServerKnobs.h Introduce a simulate EncryptKeyVaultProxy interface (#6576) 2022-03-10 12:06:49 -08:00
SimpleConfigTransaction.actor.cpp Abstract the cluster file into a cluster connection record that can be backed by something other than the filesystem. 2021-10-22 11:05:18 -07:00
SimpleConfigTransaction.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
SimpleIni.h Move SimpleIni.h to fdbclient 2022-02-07 13:31:04 -08:00
SnapshotCache.h Fix many -Wreorder-ctor warnings 2021-07-23 17:33:18 -07:00
SpecialKeySpace.actor.cpp Fix static initialization order for maxAllowedVersion (#6570) 2022-03-11 11:02:35 -08:00
SpecialKeySpace.actor.h Add a comment about limitsHint. 2022-03-08 14:35:22 -08:00
StackLineage.cpp Remove stack lineage 2021-06-15 15:18:52 -07:00
StackLineage.h Various ALP fixes 2021-06-04 15:01:18 -07:00
Status.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
StatusClient.actor.cpp Support hostname in coordinators commands. 2022-02-24 23:02:29 -08:00
StatusClient.h Clients which fetch status should not disconnect from the coordinators and cluster controller between each retrieval 2020-01-22 15:41:22 -08:00
StorageServerInterface.cpp Cleaning up and improving TSS debugging traces for range read mismatches 2022-03-11 11:38:58 -06:00
StorageServerInterface.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
Subspace.cpp apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
Subspace.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
SystemData.cpp Add a tenant parameter to read and commit requests. Store a map of all tenants on commit proxy and storage servers. Add an option to require tenant mode. 2022-03-06 21:54:21 -08:00
SystemData.h Add a tenant parameter to read and commit requests. Store a map of all tenants on commit proxy and storage servers. Add an option to require tenant mode. 2022-03-06 21:54:21 -08:00
TagThrottle.actor.cpp Update comments, remove headers 2021-08-11 23:19:39 -07:00
TagThrottle.actor.h Fix all tr->get, hold the ThreadFuture for the memory 2021-09-13 13:28:48 -07:00
TaskBucket.actor.cpp Fix more -Wreorder-ctor warnings across several files 2021-07-24 11:43:19 -07:00
TaskBucket.h Rename ::TRUE and ::FALSE in BooleanParams to ::True and ::False so as to not conflict with the TRUE and FALSE macros provided by the Windows and MacOS SDKs. 2021-07-17 00:11:40 -07:00
Tenant.h Fix a couple bugs. Don't store old versions in tenant map indefinitely. 2022-03-06 21:54:21 -08:00
TestKnobCollection.cpp Separate test knobs into atomic and nonatomic 2021-08-23 11:41:00 -07:00
TestKnobCollection.h Remove unnecessary function 2021-08-23 11:41:01 -07:00
ThreadSafeTransaction.cpp GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
ThreadSafeTransaction.h GetMappedRange support serializable & check RYW & continuation (#6181) 2022-03-10 10:05:44 -08:00
TransactionLineage.cpp Revert "Merge pull request #4802 from sfc-gh-ljoswiak/revert/actor-lineage" 2021-06-04 13:31:55 -07:00
TransactionLineage.h Disable sampling everywhere except fdbserver 2021-07-27 09:53:23 -07:00
Tuple.cpp Fix global config not updating on server processes 2021-06-03 14:27:24 -07:00
Tuple.h Fix global config not updating on server processes 2021-06-03 14:27:24 -07:00
VersionedMap.actor.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
VersionedMap.cpp apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
VersionedMap.h Fix formatting 2022-03-06 21:54:21 -08:00
WellKnownEndpoints.h Merge rollback message into rollforward message 2021-10-25 12:03:22 -07:00
WriteMap.h Fix many -Wreorder-ctor warnings 2021-07-23 17:33:18 -07:00
azurestorage.cmake First draft of Azure blob storage backup container 2020-10-24 16:47:51 -07:00
versions.h.cmake fdbserver now compiling 2018-12-13 14:13:47 -08:00
zipf.c apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00
zipf.h apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-10 10:18:07 -08:00