MCPcopy Create free account
hub / github.com/Fullstop000/wickdb / process_batch

Method process_batch

src/db/mod.rs:255–360  ·  view source on GitHub ↗

The thread take batches from the queue and apples them into memtable and WAL. Steps: 1. Grouping the batches in the queue into a big enough batch 2. Make sure there is enough space in the memtable. This might trigger a minor compaction or even several major compaction. 3. Write into WAL (.log file) 4. Write into Memtable 5. Update sequence of version set

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

open_dbMethod · 0.80

Calls 15

cloneMethod · 0.80
waitMethod · 0.80
make_room_for_writeMethod · 0.80
group_batchesMethod · 0.80
last_sequenceMethod · 0.80
set_sequenceMethod · 0.80
get_countMethod · 0.80
add_recordMethod · 0.80
syncMethod · 0.80
insert_intoMethod · 0.80
record_bg_errorMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected