calling decrement with -1 even though param is an integer. Just made it clean by adding a decrement function
reviewed by: mcslee
revertable
test plan: ran on a test server
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665669
13f79535-47bb-0310-9956-
ffa450edef68
return eventBase_;
}
- void incrementNumConnections(size_t incr=1) {
- numTConnections_ += incr;
+ void incrementNumConnections() {
+ ++numTConnections_;
+ }
+
+ void decrementNumConnections() {
+ --numTConnections_;
}
size_t getNumConnections() {
}
~TConnection() {
- server_->incrementNumConnections(-1);
+ server_->decrementNumConnections();
}
// Initialize