diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-10-27 16:48:16 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-10-27 16:48:16 -0400 |
commit | 8a50d05676e65343e4cb2cb43d1fdc3d5aee7751 (patch) | |
tree | aff0378e6e57f06841753ab4454829d21a03a3ef /dbtests/updatetests.cpp | |
parent | 816ec3eeece9c62fbe4d372470638a7ba76b9392 (diff) | |
download | mongo-8a50d05676e65343e4cb2cb43d1fdc3d5aee7751.tar.gz |
make inc6 a little cleaner
Diffstat (limited to 'dbtests/updatetests.cpp')
-rw-r--r-- | dbtests/updatetests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbtests/updatetests.cpp b/dbtests/updatetests.cpp index a2c2dea6866..9b59799a473 100644 --- a/dbtests/updatetests.cpp +++ b/dbtests/updatetests.cpp @@ -753,8 +753,8 @@ namespace UpdateTests { client().insert( ns() , BSON( "x" << 5 ) ); ASSERT( findOne()["x"].type() == NumberInt ); long long start = 5; - long long max = 1024LL * 1024LL * 1024LL * 16LL; - ASSERT( max > numeric_limits<int>::max() ); + long long max = numeric_limits<int>::max(); + max *= 32; while ( start < max ){ update( BSON( "$inc" << BSON( "x" << 500000 ) ) ); |