MCPcopy Create free account
hub / github.com/elastic/devfiler / commit

Method commit

src/storage/table.rs:299–307  ·  view source on GitHub ↗

Atomically insert the batch.

(self)

Source from the content-addressed store, hash-verified

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
310impl<T: Table> fmt::Debug for InsertionBatch<'_, T> {

Callers 2

ingest_locationsFunction · 0.80
process_sampleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected