Permalink
Browse files

fix numa parsing issue SERVER-3496

  • Loading branch information...
1 parent 652f407 commit b09007c96bafb185374ccd5ab68fba5e8362017f @erh erh committed Sep 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 util/version.cpp
View
@@ -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] = ' ';

0 comments on commit b09007c

Please sign in to comment.