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/db/index.cpp | |
parent | a56eef7bd9a5d390182ea64118e11420b052a380 (diff) | |
download | mongo-bd6d0c99195e324e14390205e2bc6ff88c01e365.tar.gz |
replace assert with verify SERVER-1259
Diffstat (limited to 'src/mongo/db/index.cpp')
-rw-r--r-- | src/mongo/db/index.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/index.cpp b/src/mongo/db/index.cpp index 7c6551549ec..2781b07e592 100644 --- a/src/mongo/db/index.cpp +++ b/src/mongo/db/index.cpp @@ -237,7 +237,7 @@ namespace mongo { void setDifference(BSONObjSet &l, BSONObjSet &r, vector<BSONObj*> &diff) { // l and r must use the same ordering spec. - assert( l.key_comp().order() == r.key_comp().order() ); + verify( l.key_comp().order() == r.key_comp().order() ); BSONObjSet::iterator i = l.begin(); BSONObjSet::iterator j = r.begin(); while ( 1 ) { @@ -342,7 +342,7 @@ namespace mongo { } sourceCollection = nsdetails(sourceNS.c_str()); tlog() << "info: creating collection " << sourceNS << " on add index" << endl; - assert( sourceCollection ); + verify( sourceCollection ); } if ( sourceCollection->findIndexByName(name) >= 0 ) { @@ -438,7 +438,7 @@ namespace mongo { keyPattern = info["key"].embeddedObjectUserCheck(); if ( keyPattern.objsize() == 0 ) { out() << info.toString() << endl; - assert(false); + verify(false); } _init(); } |