| 103 | } |
| 104 | |
| 105 | comm::RetCode LockConfig::GetAllLockID(std::set<int> &lock_ids) const { |
| 106 | for (auto &&it : impl_->lock_id2lock) { |
| 107 | lock_ids.insert(it.first); |
| 108 | } |
| 109 | return comm::RetCode::RET_OK; |
| 110 | } |
| 111 | |
| 112 | comm::RetCode LockConfig::GetLockByLockID(const int lock_id, shared_ptr<const proto::Lock> &lock) const { |
| 113 | auto it(impl_->lock_id2lock.find(lock_id)); |
no outgoing calls