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.
| 206 | // Otherwise, we will move the file with a "bad" postfix. |
| 207 | // The writer will be reset after the function. |
| 208 | static 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 | |
| 218 | Status TupleCacheNode::VerifyAndMoveDebugCache(RuntimeState* state) { |
| 219 | DCHECK(debug_dump_text_writer_ref_ != nullptr); |
no test coverage detected