summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authordwight <dwight@dwights-MacBook-Pro.local>2010-09-16 09:43:26 -0400
committerdwight <dwight@dwights-MacBook-Pro.local>2010-09-16 09:43:26 -0400
commit24746abcc235cc9ce4d18c07633834df255e5929 (patch)
tree8a139ce624c36dd2be435fbf76d04baa9acdcf50 /scripting
parent85cdf5bfed44e1119b91a3e95a3f7b13c77fad0a (diff)
downloadmongo-24746abcc235cc9ce4d18c07633834df255e5929.tar.gz
better name
Diffstat (limited to 'scripting')
-rw-r--r--scripting/bench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripting/bench.cpp b/scripting/bench.cpp
index 34e6e8a65ea..b3bf96c6146 100644
--- a/scripting/bench.cpp
+++ b/scripting/bench.cpp
@@ -64,7 +64,7 @@ namespace mongo {
bool error;
};
- void runBench( BenchRunConfig * config ){
+ static void benchThread( BenchRunConfig * config ){
ScopedDbConnection conn( config->host );
config->threadsReady++;
@@ -121,7 +121,7 @@ namespace mongo {
// start threads
vector<boost::thread*> all;
for ( unsigned i=0; i<config.parallel; i++ )
- all.push_back( new boost::thread( boost::bind( runBench , &config ) ) );
+ all.push_back( new boost::thread( boost::bind( benchThread , &config ) ) );
// give them time to init
while ( config.threadsReady < config.parallel )