Skip to content

Commit

Permalink
SERVER-23556 Disable mmapv1 on non-x86 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
acmorrow committed Apr 7, 2016
1 parent dfa177b commit ff8061c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 47 deletions.
10 changes: 4 additions & 6 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -1457,12 +1457,10 @@ if env.TargetOSIs('posix'):

mmapv1 = False
if get_option('mmapv1') == 'auto':
# MMapV1 only supports little-endian architectures, and will fail to run on big-endian
# so disable MMapV1 on big-endian architectures
if endian == 'big':
mmapv1 = False
else:
mmapv1 = True
# The mmapv1 storage engine is only supported on x86
# targets. Unless explicitly requested, disable it on all other
# platforms.
mmapv1 = (env['TARGET_ARCH'] in ['i386', 'x86_64'])
elif get_option('mmapv1') == 'on':
mmapv1 = True

Expand Down
82 changes: 41 additions & 41 deletions etc/evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4386,7 +4386,7 @@ buildvariants:
tooltags: -gccgoflags "$(pkg-config --libs --cflags libssl libsasl2)" -tags 'sasl ssl'
compile_flags: --ssl MONGO_DISTMOD=rhel71 --release -j$(grep -c processor /proc/cpuinfo) CCFLAGS="-mcpu=power8 -mtune=power8 -mcmodel=medium" CC=/opt/mongodbtoolchain/v2/bin/gcc CXX=/opt/mongodbtoolchain/v2/bin/g++
num_jobs_available: 20
test_flags: --continueOnFailure
test_flags: --continueOnFailure --excludeWithAnyTags=requires_mmapv1
has_packages: true
packager_script: packager-enterprise.py
packager_arch: ppc64le
Expand All @@ -4399,104 +4399,104 @@ buildvariants:
- name: compile
distros:
- rhel71-power8-build
- name: aggregation
# - name: aggregation
- name: aggregation_WT
- name: aggregation_WT_ese
- name: aggregation_auth
- name: aggregation_read_concern_majority_passthrough_WT
- name: audit
# - name: audit
- name: audit_WT
- name: auth
# - name: auth
- name: auth_WT
- name: auth_audit
# - name: auth_audit
- name: auth_audit_WT
- name: bulk_gle_passthrough
# - name: bulk_gle_passthrough
- name: bulk_gle_passthrough_WT
- name: concurrency
# - name: concurrency
- name: concurrency_WT
- name: concurrency_replication
# - name: concurrency_replication
- name: concurrency_replication_WT
- name: concurrency_sharded
# - name: concurrency_sharded
- name: concurrency_sharded_WT
- name: concurrency_simultaneous
# - name: concurrency_simultaneous
- name: concurrency_simultaneous_WT
- name: dbtest
# - name: dbtest
- name: dbtest_WT
- name: disk
- name: dur_jscore_passthrough
- name: durability
# - name: disk
# - name: dur_jscore_passthrough
# - name: durability
- name: ese_WT
- name: failpoints
- name: failpoints_auth
- name: gle_auth
# - name: gle_auth
- name: gle_auth_WT
- name: gle_auth_basics_passthrough
# - name: gle_auth_basics_passthrough
- name: gle_auth_basics_passthrough_WT
- name: gle_auth_basics_passthrough_write_cmd
# - name: gle_auth_basics_passthrough_write_cmd
- name: gle_auth_basics_passthrough_write_cmd_WT
- name: gle_auth_write_cmd
# - name: gle_auth_write_cmd
- name: gle_auth_write_cmd_WT
- name: httpinterface
- name: integration_tests_replset
- name: integration_tests_standalone
- name: jsCore
# - name: jsCore
- name: jsCore_WT
- name: jsCore_WT_ese
- name: jsCore_auth
- name: jsCore_compatibility
# - name: jsCore_auth
# - name: jsCore_compatibility
- name: jsCore_compatibility_WT
- name: jsCore_minimum_batch_size_WT
- name: jsCore_op_query
# - name: jsCore_minimum_batch_size_WT
# - name: jsCore_op_query
- name: jsCore_op_query_WT
- name: jsCore_small_oplog
# - name: jsCore_small_oplog
- name: jsCore_small_oplog_WT
- name: jsCore_small_oplog_rs
# - name: jsCore_small_oplog_rs
- name: jsCore_small_oplog_rs_WT
- name: mmap
# - name: mmap
- name: mongosTest
- name: noPassthrough
- name: noPassthroughWithMongod
# - name: noPassthrough
# - name: noPassthroughWithMongod
- name: noPassthroughWithMongod_WT
- name: noPassthrough_WT
- name: parallel
# - name: parallel
- name: parallel_WT
- name: parallel_compatibility
# - name: parallel_compatibility
- name: parallel_compatibility_WT
- name: read_concern_majority_passthrough_WT
- name: replicasets
# - name: replicasets
- name: replicasets_WT
- name: replicasets_WT_ese
- name: replicasets_auth
- name: replicasets_legacy
- name: replication
# - name: replication
- name: replication_WT
- name: replication_auth
- name: sasl
- name: sharded_collections_jscore_passthrough
# - name: sharded_collections_jscore_passthrough
- name: sharded_collections_jscore_passthrough_WT
- name: sharding
# - name: sharding
- name: sharding_WT
- name: sharding_WT_ese
- name: sharding_auth
- name: sharding_auth_audit_WT
- name: sharding_csrs_continuous_config_stepdown_WT
- name: sharding_gle_auth_basics_passthrough
# - name: sharding_gle_auth_basics_passthrough
- name: sharding_gle_auth_basics_passthrough_WT
- name: sharding_gle_auth_basics_passthrough_write_cmd
# - name: sharding_gle_auth_basics_passthrough_write_cmd
- name: sharding_gle_auth_basics_passthrough_write_cmd_WT
- name: sharding_jscore_passthrough
# - name: sharding_jscore_passthrough
- name: sharding_jscore_passthrough_WT
- name: sharding_jscore_passthrough_wire_ops_WT
- name: sharding_op_query_WT
- name: slow1
# - name: slow1
- name: slow1_WT
- name: serial_run
# - name: serial_run
- name: serial_run_WT
- name: snmp
# - name: snmp
- name: snmp_WT
- name: ssl
- name: sslSpecial
- name: tool
# - name: tool
- name: tool_WT
- name: unittests
- name: push
Expand Down

0 comments on commit ff8061c

Please sign in to comment.