Remove all data from the log and reopen it. Log segments are deleted starting from the newest. As multiple segments cannot be deleted atomically, the log may not be completely empty if the method returns an error. Note that the method consumes `self` to ensure the log is not modified while resetting.
(self)
| 407 | /// Note that the method consumes `self` to ensure the log is not modified |
| 408 | /// while resetting. |
| 409 | pub fn reset(self) -> io::Result<Self> { |
| 410 | let inner = self.inner.into_inner().unwrap().reset()?; |
| 411 | Ok(Self { |
| 412 | inner: RwLock::new(inner), |
| 413 | }) |
| 414 | } |
| 415 | |
| 416 | /// Remove all data past the given transaction `offset` from the log and |
| 417 | /// reopen it. |
no test coverage detected