MCPcopy Create free account
hub / github.com/apache/impala / RegisterClient

Method RegisterClient

be/src/runtime/bufferpool/buffer-pool.cc:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122BufferPool::~BufferPool() {}
123
124Status BufferPool::RegisterClient(const string& name, TmpFileGroup* file_group,
125 ReservationTracker* parent_reservation, MemTracker* mem_tracker,
126 int64_t reservation_limit, RuntimeProfile* profile, ClientHandle* client,
127 MemLimit mem_limit_mode) {
128 DCHECK(!client->is_registered());
129 DCHECK(parent_reservation != NULL);
130 client->impl_ = new Client(this, file_group, name, parent_reservation, mem_tracker,
131 mem_limit_mode, reservation_limit, profile);
132 return Status::OK();
133}
134
135void BufferPool::DeregisterClient(ClientHandle* client) {
136 if (!client->is_registered()) return;

Callers 15

CreateHashTableMethod · 0.45
PrepareMethod · 0.45
SetUpMethod · 0.45
SetUpMethod · 0.45
InitMethod · 0.45
NewClientMethod · 0.45
SetUpMethod · 0.45
TEST_FFunction · 0.45

Calls 2

OKFunction · 0.85
is_registeredMethod · 0.80

Tested by 15

CreateHashTableMethod · 0.36
SetUpMethod · 0.36
SetUpMethod · 0.36
InitMethod · 0.36
SetUpMethod · 0.36
TEST_FFunction · 0.36
TestBufferAllocationMethod · 0.36
TestCleanPageLimitMethod · 0.36
CreatePageLoopMethod · 0.36
TestMemoryReclamationMethod · 0.36