| 122 | BufferPool::~BufferPool() {} |
| 123 | |
| 124 | Status 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 | |
| 135 | void BufferPool::DeregisterClient(ClientHandle* client) { |
| 136 | if (!client->is_registered()) return; |