summaryrefslogtreecommitdiff
path: root/src/mongo/db/taskqueue.h
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2012-01-27 14:42:24 -0500
committerDwight <dwight@10gen.com>2012-01-27 14:42:24 -0500
commit26eccbf5890128bffbc6f758ab89083e5cb58d96 (patch)
tree2f5a3d8745bc5a565e1b2b99f7f64a64762b2fc0 /src/mongo/db/taskqueue.h
parent126d090a797498b7157919f1057224e1d0035398 (diff)
downloadmongo-26eccbf5890128bffbc6f758ab89083e5cb58d96.tar.gz
SERVER-4328 like writelocktry, make readlocktry be global and not per db. concept being that try's are rare
Diffstat (limited to 'src/mongo/db/taskqueue.h')
-rw-r--r--src/mongo/db/taskqueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/taskqueue.h b/src/mongo/db/taskqueue.h
index 005bd986f11..6abd558247d 100644
--- a/src/mongo/db/taskqueue.h
+++ b/src/mongo/db/taskqueue.h
@@ -72,7 +72,7 @@ namespace mongo {
int toDrain = 0;
{
// flip queueing to the other queue (we are double buffered)
- readlocktry lk("", 5);
+ readlocktry lk(5);
if( !lk.got() )
return;
toDrain = _which;