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/ops/update.h | |
parent | a56eef7bd9a5d390182ea64118e11420b052a380 (diff) | |
download | mongo-bd6d0c99195e324e14390205e2bc6ff88c01e365.tar.gz |
replace assert with verify SERVER-1259
Diffstat (limited to 'src/mongo/db/ops/update.h')
-rw-r--r-- | src/mongo/db/ops/update.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/ops/update.h b/src/mongo/db/ops/update.h index a4934302e7b..6a37bba1baa 100644 --- a/src/mongo/db/ops/update.h +++ b/src/mongo/db/ops/update.h @@ -136,7 +136,7 @@ namespace mongo { manip.setInt( elt.numberInt() + in.numberInt() ); break; default: - assert(0); + verify(0); } } void IncrementMe( BSONElement& in ) const { @@ -152,7 +152,7 @@ namespace mongo { manip.SetInt( elt.numberInt() + in.numberInt() ); break; default: - assert(0); + verify(0); } } @@ -298,7 +298,7 @@ namespace mongo { bool _hasDynamicArray; static Mod::Op opFromStr( const char *fn ) { - assert( fn[0] == '$' ); + verify( fn[0] == '$' ); switch( fn[1] ) { case 'i': { if ( fn[2] == 'n' && fn[3] == 'c' && fn[4] == 0 ) @@ -513,7 +513,7 @@ namespace mongo { case NumberInt: b.append( n , incint ); break; default: - assert(0); + verify(0); } } |