mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
Thrift: Fix a bug in a test program.
Summary: This didn't get updated when the class was renamed. Reviewed By: mcslee Test Plan: Trust Chad Walters. Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665456 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f495f367c9
commit
4637990013
@ -57,7 +57,7 @@ class Server : public ServiceIf {
|
||||
Server() {}
|
||||
|
||||
void count(const char* method) {
|
||||
MutexMonitor m(lock_);
|
||||
Guard m(lock_);
|
||||
int ct = counts_[method];
|
||||
counts_[method] = ++ct;
|
||||
}
|
||||
@ -68,7 +68,7 @@ class Server : public ServiceIf {
|
||||
}
|
||||
|
||||
count_map getCount() {
|
||||
MutexMonitor m(lock_);
|
||||
Guard m(lock_);
|
||||
return counts_;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user