MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / submit_and_sync

Method submit_and_sync

nodedb-wal/src/uring_writer.rs:197–204  ·  view source on GitHub ↗

Submit the buffered data via io_uring write + fsync, and wait for completion. This is the group commit point: all records appended since the last `submit_and_sync()` become durable after this returns.

(&mut self)

Source from the content-addressed store, hash-verified

195 /// This is the group commit point: all records appended since the last
196 /// `submit_and_sync()` become durable after this returns.
197 pub fn submit_and_sync(&mut self) -> Result<()> {
198 if self.buffer.is_empty() {
199 return Ok(());
200 }
201 self.submit_and_wait_write()?;
202 self.submit_and_wait_fsync()?;
203 Ok(())
204 }
205
206 /// Submit a write SQE and wait for the CQE.
207 ///

Calls 3

submit_and_wait_writeMethod · 0.80
submit_and_wait_fsyncMethod · 0.80
is_emptyMethod · 0.45