Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ open_buffered
Function
open_buffered
nodedb-wal/src/double_write.rs:482–484 ·
view source on GitHub ↗
(path: &Path)
Source
from the content-addressed store, hash-verified
480
use crate::record::RecordType;
481
482
fn open_buffered(path: &Path) -> DoubleWriteBuffer {
483
DoubleWriteBuffer::open(path, DwbMode::Buffered).unwrap()
484
}
485
486
#[test]
487
fn write_and_recover() {
Callers
7
write_and_recover
Function · 0.85
recover_nonexistent_returns_none
Function · 0.85
survives_reopen
Function · 0.85
batch_deferred_writes_and_flush
Function · 0.85
flush_is_idempotent
Function · 0.85
recover_after_wraparound
Function · 0.85
bytes_written_counter_increments
Function · 0.85
Calls
1
open
Function · 0.50
Tested by
7
write_and_recover
Function · 0.68
recover_nonexistent_returns_none
Function · 0.68
survives_reopen
Function · 0.68
batch_deferred_writes_and_flush
Function · 0.68
flush_is_idempotent
Function · 0.68
recover_after_wraparound
Function · 0.68
bytes_written_counter_increments
Function · 0.68