diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 16:43:43 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 16:43:43 -0500 |
commit | 0ab8149a8e9e900b63ee28b9590a249578339376 (patch) | |
tree | 564a5c516b7c308964b79ea761e4800efe26d252 /util/mmap_posix.cpp | |
parent | 95137f262c2a57831dccf058428a2f64e900496e (diff) | |
download | mongo-0ab8149a8e9e900b63ee28b9590a249578339376.tar.gz |
uassert/massert take error code SERVER-112
Diffstat (limited to 'util/mmap_posix.cpp')
-rw-r--r-- | util/mmap_posix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/mmap_posix.cpp b/util/mmap_posix.cpp index 87de388e188..2d6441c928c 100644 --- a/util/mmap_posix.cpp +++ b/util/mmap_posix.cpp @@ -54,7 +54,7 @@ namespace mongo { theFileAllocator().allocateAsap( filename, length ); len = length; - massert( "mmap() can't map area of size 0" , length > 0 ); + massert( 10446 , "mmap() can't map area of size 0" , length > 0 ); fd = open(filename, O_RDWR | O_NOATIME); @@ -67,7 +67,7 @@ namespace mongo { if ( filelen != length ){ cout << "wanted length: " << length << " filelen: " << filelen << endl; cout << sizeof(size_t) << endl; - massert( "file size allocation failed", filelen == length ); + massert( 10447 , "file size allocation failed", filelen == length ); } lseek( fd, 0, SEEK_SET ); |