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

Method GetQueueInfoByQueue

phxqueue/config/topicconfig.cpp:447–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447comm::RetCode TopicConfig::GetQueueInfoByQueue(const int queue, shared_ptr<const proto::QueueInfo> &queue_info) const {
448 queue_info = nullptr;
449 auto &&it = impl_->queue2queue_info_id.find(queue);
450 if (it == impl_->queue2queue_info_id.end()) return comm::RetCode::RET_ERR_RANGE_QUEUE;
451
452 return GetQueueInfoByQueueInfoID(it->second, queue_info);
453}
454
455comm::RetCode TopicConfig::GetQueueInfoByQueueInfoID(const int queue_info_id, shared_ptr<const proto::QueueInfo> &queue_info) const {
456 queue_info = nullptr;

Callers 7

RawAddMethod · 0.80
AddMethod · 0.80
GetMethod · 0.80
CheckTopicConfigMethod · 0.80
TestTopicConfigMethod · 0.80
MakeHandleBucketsMethod · 0.80
ProcessMethod · 0.80

Calls

no outgoing calls

Tested by 2

CheckTopicConfigMethod · 0.64
TestTopicConfigMethod · 0.64