diff --git a/db/commands/mr.cpp b/db/commands/mr.cpp index 6398ed7bc7f..58d8ab65660 100644 --- a/db/commands/mr.cpp +++ b/db/commands/mr.cpp @@ -720,7 +720,11 @@ namespace mongo { } - long long finalCount = mr.renameIfNeeded( db , &state ); + long long finalCount; + { + dblock lk; + finalCount = mr.renameIfNeeded( db , &state ); + } log(0) << " mapreducefinishcommand " << mr.finalLong << " " << finalCount << endl; for ( set::iterator i=servers.begin(); i!=servers.end(); i++ ){ diff --git a/s/commands_public.cpp b/s/commands_public.cpp index 2b518828ac2..4a4e433e785 100644 --- a/s/commands_public.cpp +++ b/s/commands_public.cpp @@ -844,6 +844,7 @@ namespace mongo { } else if ( fn == "keeptemp" || fn == "out" || + fn == "outType" || fn == "finalize" ){ // we don't want to copy these }