MCPcopy Create free account
hub / github.com/Tencent/phxqueue / LockInfo2LocalLockInfo

Function LockInfo2LocalLockInfo

phxqueue/lock/lockutils.cpp:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void LockInfo2LocalLockInfo(const comm::proto::LockInfo &lock_info,
91 proto::LocalLockInfo &local_lock_info,
92 const uint64_t expire_time_ms) {
93 local_lock_info.set_version(lock_info.version());
94 local_lock_info.set_client_id(lock_info.client_id());
95 local_lock_info.set_lease_time_ms(lock_info.lease_time_ms());
96 local_lock_info.set_expire_time_ms(expire_time_ms);
97}
98
99//void GetOssAttrId(int32_t paxos_port, uint32_t *const oss_attr_id) {
100// const string local_host{LOGID_BASE::GetInnerIP()};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected