From b09007c96bafb185374ccd5ab68fba5e8362017f Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Mon, 26 Sep 2011 00:26:10 -0400 Subject: fix numa parsing issue SERVER-3496 --- util/version.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/version.cpp b/util/version.cpp index 225ef036af6..c49288a1aed 100644 --- a/util/version.cpp +++ b/util/version.cpp @@ -112,7 +112,7 @@ namespace mongo { f.open("/proc/self/numa_maps", /*read_only*/true); if ( f.is_open() && ! f.bad() ) { char line[100]; //we only need the first line - f.read(0, line, sizeof(line)); + read(f.fd, line, sizeof(line)); // just in case... line[98] = ' '; -- cgit v1.2.1