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

Method Flush

be/src/runtime/io/data-cache.cc:313–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 }
312
313 Status Flush() {
314 std::unique_lock<percpu_rwlock> lock(lock_);
315 // If the file is already closed, nothing to do.
316 if (!file_) return Status::OK();
317 kudu::Status status = file_->Sync();
318 if (UNLIKELY(!status.ok())) {
319 return Status(status.message().ToString());
320 }
321 return Status::OK();
322 }
323
324 void SetReadOnly() {
325 // Setting this without holding a lock tells other threads not to start new

Callers 1

DumpCacheFilesMethod · 0.45

Calls 6

OKFunction · 0.85
StatusClass · 0.50
SyncMethod · 0.45
okMethod · 0.45
ToStringMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected