Permalink
Browse files

Merge branch 'master' of github.com:mongodb/mongo

  • Loading branch information...
2 parents 91f671e + 14482d8 commit a991965b633476e93ed02b417fdc419279b9d4fa @dwight dwight committed Jul 30, 2010
Showing with 10 additions and 8 deletions.
  1. +10 −8 util/hostandport.h
View
@@ -101,17 +101,19 @@ namespace mongo {
inline string HostAndPort::toString() const {
stringstream ss;
ss << _host;
- if( _port != -1 ) ss << ':';
+ if ( _port != -1 ){
+ ss << ':';
#if defined(_DEBUG)
- if( _port >= 44000 && _port < 44100 ) {
- log() << "warning: special debug port 44xxx used" << endl;
- ss << _port+1;
- }
- else
- ss << _port;
+ if( _port >= 44000 && _port < 44100 ) {
+ log() << "warning: special debug port 44xxx used" << endl;
+ ss << _port+1;
+ }
+ else
+ ss << _port;
#else
- ss << _port;
+ ss << _port;
#endif
+ }
return ss.str();
}

0 comments on commit a991965

Please sign in to comment.