summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2011-10-06 12:27:18 -0300
committergregs <greg@10gen.com>2011-10-06 11:29:00 -0400
commit4eff1007c98e99b0ec0c51c5da3724138f65593b (patch)
tree123639b175ea6951df1e28301a5b7ea18900b038
parent671479a616924e405d25cb79581f27b934c7fcff (diff)
downloadmongo-4eff1007c98e99b0ec0c51c5da3724138f65593b.tar.gz
pass errmsg by ref
-rw-r--r--s/d_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/s/d_state.cpp b/s/d_state.cpp
index 9e8c57ee78d..a6fa2b1a3f8 100644
--- a/s/d_state.cpp
+++ b/s/d_state.cpp
@@ -430,7 +430,7 @@ namespace mongo {
return checkConfigOrInit( configdb , authoritative , errmsg , result , true );
}
- bool checkMongosID( ShardedConnectionInfo* info, const BSONElement& id, string errmsg ) {
+ bool checkMongosID( ShardedConnectionInfo* info, const BSONElement& id, string& errmsg ) {
if ( id.type() != jstOID ) {
if ( ! info->hasID() ) {
warning() << "bad serverID set in setShardVersion and none in info: " << id << endl;