| 96 | |
| 97 | |
| 98 | comm::RetCode LockConfig::GetAllLock(std::vector<shared_ptr<const proto::Lock> > &locks) const { |
| 99 | for (auto &&it : impl_->lock_id2lock) { |
| 100 | locks.push_back(it.second); |
| 101 | } |
| 102 | return comm::RetCode::RET_OK; |
| 103 | } |
| 104 | |
| 105 | comm::RetCode LockConfig::GetAllLockID(std::set<int> &lock_ids) const { |
| 106 | for (auto &&it : impl_->lock_id2lock) { |
no outgoing calls