Permalink
Browse files

delay starting MR until all data was inserted

  • Loading branch information...
1 parent 86b6240 commit ebfc1c32c2fab856cf9f66295f1dd69f69d95edb Alberto Lerner committed Oct 25, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 jstests/sharding/bigMapReduce.js
@@ -7,6 +7,10 @@ db = s.getDB( "test" );
var str=""
for (i=0;i<4*1024;i++) { str=str+"a"; }
for (j=0; j<50; j++) for (i=0; i<512; i++){ db.foo.save({y:str})}
+db.getLastError();
+
+s.printChunks();
+s.printChangeLog();
function map() { emit('count', 1); }
function reduce(key, values) { return Array.sum(values) }

0 comments on commit ebfc1c3

Please sign in to comment.