diff options
author | Greg Studer <greg@10gen.com> | 2011-10-06 12:27:18 -0300 |
---|---|---|
committer | gregs <greg@10gen.com> | 2011-10-06 11:29:00 -0400 |
commit | 4eff1007c98e99b0ec0c51c5da3724138f65593b (patch) | |
tree | 123639b175ea6951df1e28301a5b7ea18900b038 /s | |
parent | 671479a616924e405d25cb79581f27b934c7fcff (diff) | |
download | mongo-4eff1007c98e99b0ec0c51c5da3724138f65593b.tar.gz |
pass errmsg by ref
Diffstat (limited to 's')
-rw-r--r-- | s/d_state.cpp | 2 |
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; |