MCPcopy Create free account
hub / github.com/cosdata/cosdata / flush

Method flush

src/models/durable_wal.rs:57–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 }
56
57 pub fn flush(self) -> Result<(), BufIoError> {
58 let cursor = self.bufman.open_cursor()?;
59 self.bufman
60 .update_u32_with_cursor(cursor, self.records_upserted)?;
61 self.bufman
62 .update_u32_with_cursor(cursor, self.records_deleted)?;
63 self.bufman
64 .update_u32_with_cursor(cursor, self.total_operations)?;
65 self.bufman.close_cursor(cursor)?;
66 self.bufman.flush()
67 }
68
69 pub fn append(&mut self, op: VectorOp) -> Result<(), BufIoError> {
70 let mut buf = Vec::new();

Callers 5

appendMethod · 0.45

Calls 3

open_cursorMethod · 0.80
close_cursorMethod · 0.80