From 4b26a9beb38dcdeddf2f0b1d752873723d33fbb2 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Sun, 16 Oct 2011 22:03:09 -0400 Subject: [PATCH] call getLastError after each bench thread run so we know they're no longer active --- scripting/bench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/bench.cpp b/scripting/bench.cpp index 530555602bdf9..e9a778d220fe7 100644 --- a/scripting/bench.cpp +++ b/scripting/bench.cpp @@ -400,7 +400,7 @@ namespace mongo { catch( ... ){ error() << "Exception not handled in benchRun thread." << endl; } - + conn->getLastError(); config->threadsActive--; conn.done();