Skip to content

Commit

Permalink
pass errmsg by ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Studer committed Oct 6, 2011
1 parent 671479a commit 4eff100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s/d_state.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4eff100

Please sign in to comment.