summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo_openbsd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/processinfo_openbsd.cpp')
-rw-r--r--src/mongo/util/processinfo_openbsd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/util/processinfo_openbsd.cpp b/src/mongo/util/processinfo_openbsd.cpp
index 071b26b8521..40ad2fc1a70 100644
--- a/src/mongo/util/processinfo_openbsd.cpp
+++ b/src/mongo/util/processinfo_openbsd.cpp
@@ -96,6 +96,10 @@ int getSysctlByIDWithDefault<std::string>(const int* sysctlID,
return 0;
}
+bool ProcessInfo::checkNumaEnabled() {
+ return false;
+}
+
int ProcessInfo::getVirtualMemorySize() {
kvm_t* kd = NULL;
int cnt = 0;
@@ -177,7 +181,7 @@ void ProcessInfo::SystemInfo::collectSystemInfo() {
pageSize = static_cast<unsigned long long>(sysconf(_SC_PAGESIZE));
- hasNuma = false;
+ hasNuma = checkNumaEnabled();
}
void ProcessInfo::getExtraInfo(BSONObjBuilder& info) {}