diff options
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r-- | src/mongo/db/catalog/multi_index_block.idl | 4 | ||||
-rw-r--r-- | src/mongo/db/catalog/util/partitioned_test.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/catalog/multi_index_block.idl b/src/mongo/db/catalog/multi_index_block.idl index 14c5e3bf696..3d1d4a145d7 100644 --- a/src/mongo/db/catalog/multi_index_block.idl +++ b/src/mongo/db/catalog/multi_index_block.idl @@ -39,7 +39,7 @@ server_parameters: - runtime - startup cpp_varname: useReadOnceCursorsForIndexBuilds - cpp_vartype: AtomicBool + cpp_vartype: AtomicWord<bool> default: true maxIndexBuildMemoryUsageMegabytes: @@ -48,7 +48,7 @@ server_parameters: - runtime - startup cpp_varname: maxIndexBuildMemoryUsageMegabytes - cpp_vartype: AtomicInt32 + cpp_vartype: AtomicWord<int> default: 500 validator: gte: 100 diff --git a/src/mongo/db/catalog/util/partitioned_test.cpp b/src/mongo/db/catalog/util/partitioned_test.cpp index f7eb220f37c..1bffbf7c201 100644 --- a/src/mongo/db/catalog/util/partitioned_test.cpp +++ b/src/mongo/db/catalog/util/partitioned_test.cpp @@ -235,7 +235,7 @@ TEST(PartitionedConcurrency, ShouldProtectConcurrentAccesses) { std::vector<stdx::thread> threads; const size_t opsPerThread = 1000; - AtomicUInt32 ready{0}; + AtomicWord<unsigned> ready{0}; for (size_t threadId = 1; threadId <= numThreads; ++threadId) { auto workerThreadBody = [&, threadId, opsPerThread]() { |