From bd6d0c99195e324e14390205e2bc6ff88c01e365 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Mon, 26 Mar 2012 12:58:35 -0400 Subject: replace assert with verify SERVER-1259 --- src/mongo/db/projection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/projection.cpp') diff --git a/src/mongo/db/projection.cpp b/src/mongo/db/projection.cpp index d07e56527af..a2ec4af325d 100644 --- a/src/mongo/db/projection.cpp +++ b/src/mongo/db/projection.cpp @@ -281,14 +281,14 @@ namespace mongo { } BSONObj Projection::KeyOnly::hydrate( const BSONObj& key ) const { - assert( _include.size() == _names.size() ); + verify( _include.size() == _names.size() ); BSONObjBuilder b( key.objsize() + _stringSize + 16 ); BSONObjIterator i(key); unsigned n=0; while ( i.more() ) { - assert( n < _include.size() ); + verify( n < _include.size() ); BSONElement e = i.next(); if ( _include[n] ) { b.appendAs( e , _names[n] ); -- cgit v1.2.1