| 1020 | } |
| 1021 | |
| 1022 | void BufferedTupleStream::AddLargeRowCustomEnd(int64_t size) noexcept { |
| 1023 | DCHECK_GT(size, default_page_len_); |
| 1024 | // Immediately unpin the large write page so that we're not using up extra reservation |
| 1025 | // and so we don't append another row to the page. |
| 1026 | ResetWritePage(); |
| 1027 | // Save some of the reservation we freed up so we can create the next write page when |
| 1028 | // needed. |
| 1029 | if (NeedWriteReservation()) { |
| 1030 | buffer_pool_client_->SaveReservation(&write_page_reservation_, default_page_len_); |
| 1031 | } |
| 1032 | // The stream should be in a consistent state once the row is added. |
| 1033 | CHECK_CONSISTENCY_FAST(read_it_); |
| 1034 | } |
| 1035 | |
| 1036 | bool BufferedTupleStream::AddRow(TupleRow* row, Status* status) noexcept { |
| 1037 | DCHECK(!closed_); |
nothing calls this directly
no test coverage detected