| 2117 | } |
| 2118 | |
| 2119 | void TmpWriteHandle::Cancel() { |
| 2120 | CancelRead(); |
| 2121 | { |
| 2122 | unique_lock<mutex> lock(write_state_lock_); |
| 2123 | is_cancelled_ = true; |
| 2124 | // TODO: in future, if DiskIoMgr supported write cancellation, we could cancel it |
| 2125 | // here. |
| 2126 | } |
| 2127 | } |
| 2128 | |
| 2129 | void TmpWriteHandle::CancelRead() { |
| 2130 | if (read_range_ != nullptr) { |
no outgoing calls
no test coverage detected