| 64 | } |
| 65 | |
| 66 | void TupleTextFileWriter::Commit() { |
| 67 | DCHECK(writer_.is_open()); |
| 68 | writer_.close(); |
| 69 | if (writer_.fail()) { |
| 70 | // An error occurred while writing or closing the file. |
| 71 | string err_msg = GetStrErrMsg(); |
| 72 | LOG(WARNING) << "Failed to flush " << path_ << ": " << err_msg; |
| 73 | return; |
| 74 | } |
| 75 | LOG(INFO) << "Tuple Cache Debug: Commit completed successfully for " << path_; |
| 76 | } |
| 77 | |
| 78 | bool TupleTextFileWriter::IsEmpty() const { |
| 79 | return BytesWritten() == 0; |
nothing calls this directly
no test coverage detected