Write a WAL record to the double-write buffer before WAL append. The record is written at the current circular position and the file is fsynced immediately. Use `write_record_deferred` + `flush` for batch mode (multiple records per fsync).
(&mut self, record: &WalRecord)
| 231 | /// is fsynced immediately. Use `write_record_deferred` + `flush` for |
| 232 | /// batch mode (multiple records per fsync). |
| 233 | pub fn write_record(&mut self, record: &WalRecord) -> Result<()> { |
| 234 | self.write_record_deferred(record)?; |
| 235 | self.flush() |
| 236 | } |
| 237 | |
| 238 | /// Write a WAL record to the DWB without fsyncing. |
| 239 | /// |