| 583 | } |
| 584 | |
| 585 | void BundleWriter::EndSegmentData(int64 total_bytes_written, int64 end_bytes_written) { |
| 586 | |
| 587 | //out_->EndSegment(end_bytes_written); |
| 588 | uint32 crc32c = out_->crc32c(); |
| 589 | |
| 590 | entry_seg_->set_size(total_bytes_written); |
| 591 | entry_seg_->set_crc32c(crc32c::Mask(crc32c)); |
| 592 | size_ += total_bytes_written; |
| 593 | } |
| 594 | |
| 595 | // TODO(zongheng): on metadata write failure or !status_.ok(), consider removing |
| 596 | // the orphaned data file. |
no test coverage detected