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

Method set_state

be/src/util/cache/lirs-cache.cc:263–268  ·  view source on GitHub ↗

The caller must be holding the mutex_.

Source from the content-addressed store, hash-verified

261
262 // The caller must be holding the mutex_.
263 void set_state(LIRSState old_state, LIRSState new_state) {
264 modify_atomic_state([old_state, new_state](AtomicState& cur_state) {
265 DCHECK_EQ(cur_state.state, old_state);
266 cur_state.state = new_state;
267 });
268 }
269
270 DataResidency residency() const {
271 return atomic_state_.load().residency;

Callers 4

Calls

no outgoing calls

Tested by

no test coverage detected