diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-03-26 12:58:35 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-03-26 12:58:52 -0400 |
commit | bd6d0c99195e324e14390205e2bc6ff88c01e365 (patch) | |
tree | f9306b37b7d3302b4dd6e5f628fcf9886a09cf15 /src/mongo/util/mmap.cpp | |
parent | a56eef7bd9a5d390182ea64118e11420b052a380 (diff) | |
download | mongo-bd6d0c99195e324e14390205e2bc6ff88c01e365.tar.gz |
replace assert with verify SERVER-1259
Diffstat (limited to 'src/mongo/util/mmap.cpp')
-rwxr-xr-x | src/mongo/util/mmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/mmap.cpp b/src/mongo/util/mmap.cpp index 9865f16c484..29451ff2227 100755 --- a/src/mongo/util/mmap.cpp +++ b/src/mongo/util/mmap.cpp @@ -41,7 +41,7 @@ namespace mongo { void *p = map(filename.c_str(), len); if( p && zero ) { size_t sz = (size_t) len; - assert( len == sz ); + verify( len == sz ); memset(p, 0, sz); } return p; @@ -186,7 +186,7 @@ namespace mongo { void MongoFile::setFilename(string fn) { LockMongoFilesExclusive lk; - assert( _filename.empty() ); + verify( _filename.empty() ); _filename = fn; MongoFile *&ptf = pathToFile[fn]; massert(13617, "MongoFile : multiple opens of same filename", ptf == 0); |