diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-09-01 01:32:18 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-09-01 01:32:35 -0400 |
commit | 06825dfc011ef622deb4a2762960e2d68bc7704d (patch) | |
tree | 9084b8f8de1da0b312932f3a26c4790f3faea946 | |
parent | b416e09061258dcb0af8ab30147b0eb0dcb0cbf1 (diff) | |
download | mongo-06825dfc011ef622deb4a2762960e2d68bc7704d.tar.gz |
don't allow db access in m/r finalize SERVER-1715
-rw-r--r-- | db/mr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/mr.cpp b/db/mr.cpp index 1afc682431a..ef6494ff2da 100644 --- a/db/mr.cpp +++ b/db/mr.cpp @@ -105,6 +105,7 @@ namespace mongo { if ( finalize ){ + Scope::NoDBAccess no = s->disableDBAccess( "can't access db inside finalize" ); BSONObjBuilder b(endSizeEstimate); b.appendAs( key.firstElement() , "_id" ); s->append( b , "value" , "return" ); |