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