summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2014-10-01 18:51:09 -0400
committerSpencer T Brody <spencer@mongodb.com>2014-10-02 18:02:46 -0400
commitc9ae1354004e5767c45160b4efa7ad77d0185c0d (patch)
tree354ea0f86a4feac5149291af8388e85fce48ef47 /SConstruct
parent30b1d49b30fb3b4892fcec836cd221fe52fd5f38 (diff)
downloadmongo-c9ae1354004e5767c45160b4efa7ad77d0185c0d.tar.gz
SERVER-15031 Add compile-time flag to control which ReplicationCoordinator is used
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 5965b53dc8e..db30b8017d6 100644
--- a/SConstruct
+++ b/SConstruct
@@ -230,6 +230,9 @@ add_option( "mm", "use main memory instead of memory mapped files" , 0 , True )
add_option( "ssl" , "Enable SSL" , 0 , True )
add_option( "ssl-fips-capability", "Enable the ability to activate FIPS 140-2 mode", 0, True );
add_option( "rocksdb" , "Enable RocksDB" , 0 , False )
+add_option( "replication-implementation",
+ "Controls what implementation is used for the replication system", "?", False,
+ type="choice", choices=["impl", "legacy"], const="legacy", default="legacy" )
# library choices
js_engine_choices = ['v8-3.12', 'v8-3.25', 'none']
@@ -978,6 +981,8 @@ if has_option( "ssl" ):
if has_option("ssl-fips-capability"):
env.Append( CPPDEFINES=["MONGO_SSL_FIPS"] )
+env['MONGO_REPL_IMPL'] = get_option('replication-implementation')
+
try:
umask = os.umask(022)
except OSError: