diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-01-25 15:24:18 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-01-25 15:24:18 -0500 |
commit | 99fc51205f68a40bce67e20d719043c9e62f3aca (patch) | |
tree | 995d7b86d3e0074b9d61168dea32dbb47653b241 /util | |
parent | 9956662b3a3a8fba47db838ff36a937e635f8071 (diff) | |
download | mongo-99fc51205f68a40bce67e20d719043c9e62f3aca.tar.gz |
fix mmap error reporting
Diffstat (limited to 'util')
-rw-r--r-- | util/mmap_posix.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/util/mmap_posix.cpp b/util/mmap_posix.cpp index 87e8c556403..30350225f6b 100644 --- a/util/mmap_posix.cpp +++ b/util/mmap_posix.cpp @@ -127,11 +127,13 @@ namespace mongo { error() << "mmap private failed with out of memory. (64 bit build)" << endl; } } + else { + error() << "mmap private failed " << errnoWithDescription() << endl; + } return 0; } - else { - views.push_back(x); - } + + views.push_back(x); return x; } |