| 46 | } |
| 47 | |
| 48 | int LockToolImpl::GetLockInfo(phxrpc::OptMap &opt_map) { |
| 49 | phxqueue::comm::proto::GetLockInfoRequest req; |
| 50 | phxqueue::comm::proto::GetLockInfoResponse resp; |
| 51 | |
| 52 | //TODO: fill req from opt_map |
| 53 | |
| 54 | |
| 55 | LockClient client; |
| 56 | int ret = client.GetLockInfo(req, &resp); |
| 57 | printf("%s return %d\n", __func__, ret); |
| 58 | printf("resp: {\n%s}\n", resp.DebugString().c_str()); |
| 59 | |
| 60 | return ret; |
| 61 | } |
| 62 | |
| 63 | int LockToolImpl::AcquireLock(phxrpc::OptMap &opt_map) { |
| 64 | phxqueue::comm::proto::AcquireLockRequest req; |
nothing calls this directly
no outgoing calls
no test coverage detected