Atomically insert the batch.
(self)
| 297 | |
| 298 | /// Atomically insert the batch. |
| 299 | pub fn commit(self) { |
| 300 | self.0.raw().write(self.1).unwrap(); |
| 301 | |
| 302 | // Clear cache after batch operations since we don't track individual keys |
| 303 | if T::CACHE_SIZE > 0 { |
| 304 | let mut cache = self.0.cache().lock().unwrap(); |
| 305 | cache.clear(); |
| 306 | } |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | impl<T: Table> fmt::Debug for InsertionBatch<'_, T> { |
no outgoing calls
no test coverage detected