summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_parameters_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/server_parameters_test.cpp')
-rw-r--r--src/mongo/db/server_parameters_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/server_parameters_test.cpp b/src/mongo/db/server_parameters_test.cpp
index 88fc191ab90..34d0d8e8b36 100644
--- a/src/mongo/db/server_parameters_test.cpp
+++ b/src/mongo/db/server_parameters_test.cpp
@@ -202,7 +202,7 @@ TEST(ServerParameters, boundIntLock) {
}
TEST(ServerParameters, Simple1) {
- AtomicInt32 f(5);
+ AtomicWord<int> f(5);
ExportedServerParameter<int, ServerParameterType::kStartupAndRuntime> ff(NULL, "ff", &f);
ASSERT_EQUALS("ff", ff.name());
@@ -247,7 +247,7 @@ TEST(ServerParameters, Vector1) {
}
TEST(ServerParameters, Validators) {
- AtomicInt32 myVal(0);
+ AtomicWord<int> myVal(0);
ExportedServerParameter<int, ServerParameterType::kRuntimeOnly> myParam(
nullptr, "myVal", &myVal);
myParam.withValidator([](const int& newVal) {