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

Method UpdateState

be/src/runtime/tuple-cache-mgr.cc:313–318  ·  view source on GitHub ↗

Returns true if state was updated.

Source from the content-addressed store, hash-verified

311
312// Returns true if state was updated.
313bool TupleCacheMgr::UpdateState(TupleCacheMgr::Handle* handle,
314 TupleCacheState requiredState, TupleCacheState newState) {
315 uint8_t* data = getHandleData(cache_.get(), handle);
316 return reinterpret_cast<TupleCacheEntry*>(data)->
317 state.compare_exchange_strong(requiredState, newState);
318}
319
320size_t TupleCacheMgr::GetCharge(TupleCacheMgr::Handle* handle) const {
321 uint8_t* data = getHandleData(cache_.get(), handle);

Callers

nothing calls this directly

Calls 2

getHandleDataFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected