Permalink
Browse files

try to fix compile

  • Loading branch information...
1 parent 453a586 commit 8fd5eeb9e94d5267bd5d0c6128d2f801326a3dec @erh erh committed May 27, 2011
Showing with 3 additions and 1 deletion.
  1. +1 −1 db/queryoptimizer.h
  2. +2 −0 jstests/mr_errorhandling.js
View
@@ -226,7 +226,7 @@ namespace mongo {
}
T top() {
t = 0;
- for( int i = 1; i < v.size(); i++ ) {
+ for( size_t i = 1; i < v.size(); i++ ) {
if( v[t] < v[i] )
t = i;
}
@@ -47,3 +47,5 @@ assert.eq( { 1 : 1 , 2 : 2 , 3 : 2 , 4 : 1 } , res.convertToSingleObject() , "A"
res.drop()
assert.throws( function(){ t.mapReduce( m_good , r , { out : "xxx" , query : "foo" } ); } )
+
+printjson( t.mapReduce( function(){ emit( 1 , db.foo.findOne() ); } , r , { out : { inline : true } } ) )

0 comments on commit 8fd5eeb

Please sign in to comment.