summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2020-03-02 20:21:35 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-03 18:12:45 +0000
commit24b6ee2dd48e3f1cfde1c4d7e2b01bd73921fbad (patch)
tree6348b1bc83264152f0d86356faa0a4dbea349a9d /SConstruct
parent678fdee6c4785242b6de417a8026596519fc32ed (diff)
downloadmongo-24b6ee2dd48e3f1cfde1c4d7e2b01bd73921fbad.tar.gz
SERVER-43945 Expose out of order latch acquisitions in serverStatus
This commit also backports: SERVER-42897 Validate base-level latches SERVER-44746 Fix LatchAnalyzerTest SERVER-44155 Validate a subset of latches of all levels SERVER-45691 Change Mutex::LockListeners to use a std::vector again SERVER-45793 Improve mongo::Mutex contract SERVER-45424 Track local latch::Identities when getTestCommandsEnabled() SERVER-46041 Add DiagnosticListener/WaitListener LSAN suppressions SERVER-46461 Make static in getDiagnosticListenerState() immortal to fix destruction order issues during shutdown SERVER-46197 Make build flag to disable diagnostic latches SERVER-45276 Release lock before destroying DBClientBases
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 11 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 3f5bf1ea04c..e83f98153f2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -326,6 +326,14 @@ add_option('use-system-wiredtiger',
nargs=0,
)
+add_option('use-diagnostic-latches',
+ choices=['on', 'off'],
+ default='on',
+ help='Enable annotated Mutex types',
+ type='choice',
+)
+
+
add_option('system-boost-lib-search-suffixes',
help='Comma delimited sequence of boost library suffixes to search',
)
@@ -3311,6 +3319,9 @@ def doConfigure(myenv):
if posix_monotonic_clock:
conf.env.SetConfigHeaderDefine("MONGO_CONFIG_HAVE_POSIX_MONOTONIC_CLOCK")
+ if get_option('use-diagnostic-latches') == 'off':
+ conf.env.SetConfigHeaderDefine("MONGO_CONFIG_USE_RAW_LATCHES")
+
if (conf.CheckCXXHeader( "execinfo.h" ) and
conf.CheckDeclaration('backtrace', includes='#include <execinfo.h>') and
conf.CheckDeclaration('backtrace_symbols', includes='#include <execinfo.h>') and