diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-02-12 17:39:44 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-02-12 17:39:44 -0500 |
commit | ca198bc64f0b841118a0fc911ff714cc0bfb0a32 (patch) | |
tree | fbca7e59a66b6c20f4c103b993009bef5e8f4b6d | |
parent | b1a9d70ed7846c41e01403a8e67f79e79f5ef786 (diff) | |
download | mongo-ca198bc64f0b841118a0fc911ff714cc0bfb0a32.tar.gz |
fix race condition between dropping database or colletion and map/reduce cleanup SERVER-2542
-rw-r--r-- | db/commands/mr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/db/commands/mr.cpp b/db/commands/mr.cpp index 71b09b0511d..16c604acfa6 100644 --- a/db/commands/mr.cpp +++ b/db/commands/mr.cpp @@ -633,6 +633,9 @@ namespace mongo { killCurrentOp.checkForInterrupt(); } + + // we need to release here since we temp release below + cursor.release(); { dbtempreleasecond tl; |