| 358 | |
| 359 | private: |
| 360 | Status Flush(const ReplayOp& op) { |
| 361 | mutex_lock l(log_mutex_); |
| 362 | |
| 363 | string buf; |
| 364 | op.SerializeToString(&buf); |
| 365 | TF_RETURN_IF_ERROR(log_writer_->WriteRecord(buf)); |
| 366 | |
| 367 | // TODO(b/116624106): Not all file-systems respect calls to `Sync()` |
| 368 | return log_file_->Sync(); |
| 369 | } |
| 370 | |
| 371 | std::unique_ptr<WritableFile> log_file_; |
| 372 | std::unique_ptr<io::RecordWriter> log_writer_; |
nothing calls this directly
no test coverage detected