diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-11-28 23:41:59 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-11-28 23:42:19 -0500 |
commit | 9a55939da3cd1b8e01a4b1490592b6b0b481d994 (patch) | |
tree | 7ce8e8ea6c62c3cdac49574fe5b48096bfca5459 /client | |
parent | a4728be3a9de01747dfebb4031a9334336c197b9 (diff) | |
download | mongo-9a55939da3cd1b8e01a4b1490592b6b0b481d994.tar.gz |
fix warning
Diffstat (limited to 'client')
-rw-r--r-- | client/connpool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/connpool.cpp b/client/connpool.cpp index ee9c94ae57d..9b1bf13f038 100644 --- a/client/connpool.cpp +++ b/client/connpool.cpp @@ -169,7 +169,7 @@ namespace mongo { void DBConnectionPool::appendInfo( BSONObjBuilder& b ){ BSONObjBuilder bb( b.subobjStart( "hosts" ) ); int avail = 0; - int created = 0; + long long created = 0; { scoped_lock lk( _mutex ); @@ -187,7 +187,7 @@ namespace mongo { bb.done(); b.append( "totalAvailable" , avail ); - b.append( "totalCreated" , created ); + b.appendNumber( "totalCreated" , created ); } ScopedDbConnection * ScopedDbConnection::steal(){ |