summaryrefslogtreecommitdiff
path: root/db/dbeval.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-05-19 16:13:24 -0400
committerAaron <aaron@10gen.com>2009-05-19 16:13:24 -0400
commitf9c896224b7c682582089b30c33bfe38603a0e75 (patch)
tree5cb4b9b3bf684c93673412ffbc2e44aa1ba565b1 /db/dbeval.cpp
parente3a697fbbf22db32f100bdca4020700cd38a2068 (diff)
downloadmongo-f9c896224b7c682582089b30c33bfe38603a0e75.tar.gz
Add paramaterizable timeout for engine's invoke and exec, set timeout of 10 minutes for db.eval
Diffstat (limited to 'db/dbeval.cpp')
-rw-r--r--db/dbeval.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/dbeval.cpp b/db/dbeval.cpp
index 8b69fbafceb..b5a08d7defd 100644
--- a/db/dbeval.cpp
+++ b/db/dbeval.cpp
@@ -86,7 +86,7 @@ namespace mongo {
int res;
{
Timer t;
- res = s->invoke(f,args);
+ res = s->invoke(f,args, 10 * 60 * 1000);
int m = t.millis();
if ( m > 100 ) {
out() << "dbeval slow, time: " << dec << m << "ms " << ns << endl;