MCPcopy Create free account
hub / github.com/apache/brpc / GetRegionId

Function GetRegionId

src/brpc/rdma/block_pool.cpp:125–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125uint32_t GetRegionId(const void* buf) {
126 Region* r = GetRegion(buf);
127 if (!r) {
128 return 0;
129 }
130 return r->id;
131}
132
133static void* ExtendBlockPoolImpl(void* region_base, size_t region_size, int block_type) {
134 auto region_base_guard = butil::MakeScopeGuard([region_base]() {

Callers 3

TEST_FFunction · 0.85
DoPostRecvMethod · 0.85

Calls 1

GetRegionFunction · 0.85

Tested by 1

TEST_FFunction · 0.68