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

Method mutable_data

be/src/kudu/util/cow_object.h:250–256  ·  view source on GitHub ↗

Obtain the mutable data. This may only be called in WRITE mode.

Source from the content-addressed store, hash-verified

248
249 // Obtain the mutable data. This may only be called in WRITE mode.
250 State* mutable_data() {
251 switch (mode_) {
252 case LockMode::READ: LOG(FATAL) << "Cannot mutate data with READ lock";
253 case LockMode::WRITE: return cow_->mutable_dirty();
254 default: LOG(FATAL) << "Cannot access data after committing";
255 }
256 }
257
258 bool is_write_locked() const {
259 return mode_ == LockMode::WRITE;

Callers 10

SendBufferMethod · 0.80
CacheValueToFileTypeFunction · 0.80
DoEncryptVFunction · 0.80
DoDecryptVFunction · 0.80
DoReadVFunction · 0.80
DoWriteVFunction · 0.80
ReadMethod · 0.80
GetMethod · 0.80
EvictedEntryMethod · 0.80
getHandleDataFunction · 0.80

Calls 1

mutable_dirtyMethod · 0.80

Tested by

no test coverage detected