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

Function MoveDebugCache

be/src/exec/tuple-cache-node.cc:208–216  ·  view source on GitHub ↗

Move the debug dump cache after verification. If the verification passed, we clear the cache file. Otherwise, we will move the file with a "bad" postfix. The writer will be reset after the function.

Source from the content-addressed store, hash-verified

206// Otherwise, we will move the file with a "bad" postfix.
207// The writer will be reset after the function.
208static void MoveDebugCache(bool suc, unique_ptr<TupleTextFileWriter>& writer) {
209 DCHECK(writer != nullptr);
210 if (suc) {
211 writer->Delete();
212 } else {
213 MoveBadDebugCacheFile(writer->GetPath());
214 }
215 writer.reset();
216}
217
218Status TupleCacheNode::VerifyAndMoveDebugCache(RuntimeState* state) {
219 DCHECK(debug_dump_text_writer_ref_ != nullptr);

Callers 1

Calls 4

MoveBadDebugCacheFileFunction · 0.85
resetMethod · 0.65
DeleteMethod · 0.45
GetPathMethod · 0.45

Tested by

no test coverage detected