summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/pin_code_segments_on_startup.js
blob: 9135fae85ba7da564ac190d734d08bace7559d1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * Tests that a standalone mongod is able to pin code segments on startup when
 * 'lockCodeSegmentsInMemory=true'.
 * TODO (SERVER-75632): Re-enable this test on amazon linux once ulimits are configured.
 * @tags: [requires_increased_memlock_limits, incompatible_with_macos,
 * incompatible_with_windows_tls, incompatible_with_amazon_linux]
 */

(function() {
"use strict";

const conn = MongoRunner.runMongod({setParameter: {lockCodeSegmentsInMemory: true}});
assert.neq(null, conn, "mongod was unable to start up");
assert.eq(0, MongoRunner.stopMongod(conn));
}());