summaryrefslogtreecommitdiff
path: root/src/mongo/unittest
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2018-03-06 13:52:46 -0500
committerRobert Guo <robert.guo@10gen.com>2018-03-07 11:08:51 -0500
commit0c4b2aa326448d7de0ba3a01c62e1a4a5d6b0851 (patch)
treebeb41683bdb782a2629c63a0ff27e7267d5a23c5 /src/mongo/unittest
parent968e64a6610940ad22d87000a34470ae3679b8dd (diff)
downloadmongo-0c4b2aa326448d7de0ba3a01c62e1a4a5d6b0851.tar.gz
SERVER-33643 call initializeSystemInfo directly as a temporary workaround
Diffstat (limited to 'src/mongo/unittest')
-rw-r--r--src/mongo/unittest/system_resource_canary_bm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/unittest/system_resource_canary_bm.cpp b/src/mongo/unittest/system_resource_canary_bm.cpp
index cd060ccad40..7d15a8263d4 100644
--- a/src/mongo/unittest/system_resource_canary_bm.cpp
+++ b/src/mongo/unittest/system_resource_canary_bm.cpp
@@ -155,6 +155,7 @@ BENCHMARK_REGISTER_F(CacheLatencyTest, BM_CacheLatency)
// Loop over arrays of different sizes to test the L2, L3, and RAM latency.
->Range(256 * 1024, 4096 * 1024)
->ThreadRange(1, [] {
+ ProcessInfo::initializeSystemInfo();
ProcessInfo pi;
return static_cast<int>(pi.getNumAvailableCores().value_or(pi.getNumCores()));
}());