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

Method FindPathToRoot

be/src/runtime/bufferpool/reservation-tracker.cc:371–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371vector<ReservationTracker*> ReservationTracker::FindPathToRoot() {
372 vector<ReservationTracker*> path_to_root;
373 ReservationTracker* curr = this;
374 do {
375 path_to_root.push_back(curr);
376 curr = curr->parent_;
377 } while (curr != nullptr);
378 return path_to_root;
379}
380
381void ReservationTracker::AllocateFrom(int64_t bytes) {
382 lock_guard<SpinLock> l(lock_);

Callers 1

TransferReservationToMethod · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected