diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-09-26 00:26:10 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-09-26 00:26:10 -0400 |
commit | 299620984586bdb497342d7ba60a4fb967e4ccb3 (patch) | |
tree | 70e98f84bda53e1ab0e3d58724813a5158695c29 | |
parent | 11d51d22046e62728124e6827374e091d11f0965 (diff) | |
download | mongo-299620984586bdb497342d7ba60a4fb967e4ccb3.tar.gz |
fix numa parsing issue SERVER-3496
-rw-r--r-- | util/version.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/version.cpp b/util/version.cpp index 1c30d4f50af..8a44404d9f3 100644 --- a/util/version.cpp +++ b/util/version.cpp @@ -168,7 +168,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] = ' '; |