diff options
author | Aaron <aaron@10gen.com> | 2009-05-19 16:13:24 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-05-19 16:13:24 -0400 |
commit | f9c896224b7c682582089b30c33bfe38603a0e75 (patch) | |
tree | 5cb4b9b3bf684c93673412ffbc2e44aa1ba565b1 /db/dbeval.cpp | |
parent | e3a697fbbf22db32f100bdca4020700cd38a2068 (diff) | |
download | mongo-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.cpp | 2 |
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; |