MCPcopy Create free account
hub / github.com/apache/thrift / getConnection

Method getConnection

contrib/fb303/TClientInfo.cpp:91–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91TClientInfoConnection* TClientInfo::getConnection(int fd, bool grow) {
92 if (fd < 0 || (!grow && fd >= info_.size())) {
93 return nullptr;
94 }
95 return &info_[fd];
96}
97
98size_t TClientInfo::size() const {
99 return info_.size();

Callers 2

processContextMethod · 0.80
getStatsStringsMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected