MCPcopy Create free account

hub / github.com/LayerZero-Labs/qmdb / functions

Functions1,374 in github.com/LayerZero-Labs/qmdb

↓ 1 callersMethodlookup_or_mark_pending
Look up registered key, return slot_index If not registered, add (key, fd) to pending list, return None
crates/qmdb/src/prefetcher/dioprefetcher.rs:74
↓ 1 callersFunctionmain
(input_file, output_file)
bench/results2benchmark.py:82
↓ 1 callersFunctionmake_entries
(next_key_hashes: &[[u8; 32]; 3])
crates/qmdb/src/entryfile/entryfile.rs:500
↓ 1 callersFunctionmax_n_plus_1_at_level
(youngest_twig_id: u64, level: u8)
crates/qmdb/tests/test_tree.rs:639
↓ 1 callersFunctionmdbx_create_kv
===========
bench/src/speed/mdbx.rs:64
↓ 1 callersFunctionmix64
(mut x: u64)
crates/qmdb/src/prefetcher/dioprefetcher.rs:410
↓ 1 callersFunctionmix_block_seed
(base: u64, block_idx: u64)
bench/src/bin/crud.rs:480
↓ 1 callersFunctionmix_round_seed
(base: u64, round_idx: u64)
bench/src/bin/crud.rs:484
↓ 1 callersMethodname
(&self)
bench/src/speed/streaming_gen.rs:42
↓ 1 callersMethodnext_block
Get the next block (population or hover), or None if generation is done
bench/src/speed/streaming_gen.rs:402
↓ 1 callersFunctionnth_at_level_from_twigid
Calculates the maximum node index at a given level based on the twig ID. # Arguments `twig_id` - ID of the most recently created twig `level` - Level
crates/qmdb-common/src/def.rs:325
↓ 1 callersMethodnum_ops_in_cset
(&self)
bench/src/speed/test_gen.rs:74
↓ 1 callersFunctionnum_to_k80
(num: u64)
crates/qmdb/examples/v3_indexer.rs:208
↓ 1 callersMethodop_count_in_shard
(&self, shard_id: usize)
crates/qmdb-common/src/utils/changeset.rs:510
↓ 1 callersMethodopen_file
(&self, file_id: i64)
crates/hpfile/src/readonly.rs:63
↓ 1 callersFunctionpad32
Pads a byte slice to 32 bytes Copies the input bytes to the start of a 32-byte array, filling the remaining bytes with zeros. # Arguments `bz` - Inp
crates/qmdb/src/merkletree/helpers.rs:111
↓ 1 callersFunctionpadding_to_align8
(len: usize)
crates/qmdb-common/src/utils/mod.rs:73
↓ 1 callersFunctionparent_cv
( left_child_cv: [u32; 8], right_child_cv: [u32; 8], key_words: [u32; 8], flags: u32, )
crates/qmdb-common/tests/reference_impl.rs:257
↓ 1 callersMethodpop_stack
(&mut self)
crates/qmdb-common/tests/reference_impl.rs:321
↓ 1 callersMethodprune_head
Prune from the beginning to `offset`. This part of the file cannot be read hereafter. # Safety Note (io_uring) The caller must ensure there are no i
crates/hpfile/src/lib.rs:754
↓ 1 callersMethodprune_twigs
Prunes old twigs from the tree to reclaim space # Arguments `start_id` - ID of the first twig to prune `end_id` - ID of the last twig to prune `entry
crates/qmdb/src/merkletree/tree.rs:812
↓ 1 callersMethodpush_stack
(&mut self, cv: [u32; 8])
crates/qmdb-common/tests/reference_impl.rs:316
↓ 1 callersFunctionrand_between_seg_idx
( randsrc: &mut RandSrc, min: usize, max: usize, n: usize, seg_index: usize, )
bench/src/bin/speed.rs:909
↓ 1 callersFunctionrand_hash
(randsrc: &mut RandSrc)
crates/qmdb/examples/v1_refdbfuzz/main.rs:234
↓ 1 callersMethodrand_read_kv
fn read_entry(&self, key_hash: &[u8], key: &[u8], buf: &mut [u8]) -> (usize, bool)
crates/qmdb/examples/v1_refdbfuzz/main.rs:360
↓ 1 callersMethodread_entries_from
( &self, start_offset: i64, end_version: u64, )
crates/qmdb/src/entryfile/entryfile.rs:99
↓ 1 callersMethodread_entry
Reads an entry from the database. # Arguments `height` - Block height to read from `key_hash` - Hash of the key to read `key` - Original key `cache`
crates/qmdb/src/lib.rs:772
↓ 1 callersMethodread_entry
High-level convenience method: reads a complete entry into ReadBuf. Automatically handles two-read case when entry is larger than initial buffer. # R
crates/qmdb/src/entryfile/uring_reader.rs:590
↓ 1 callersFunctionread_kv_values
(tid: usize, key_list: &[[u8; 52]])
bench/src/speed/qmdb.rs:93
↓ 1 callersFunctionrec
(height: u8, pos: u64, leaves: &[[u8; 32]], n: u64)
crates/qmdb/src/merkletree/multiproof.rs:171
↓ 1 callersMethodrecord
(&self, duration: Duration)
bench/src/speed/metrics.rs:48
↓ 1 callersMethodrecord_as_total
( &mut self, new_total: u64, elapsed: Duration, db_entries: u64, )
bench/src/speed/results.rs:72
↓ 1 callersMethodrecord_throughput
(&mut self, operation_name: &str, count: u64, duration: Duration)
bench/src/speed/results.rs:437
↓ 1 callersMethodrecover_entry
Recovers a single entry's state in the tree This function: 1. Deactivates any dependent entries 2. Updates the youngest twig ID 3. Activates the entr
crates/qmdb/src/merkletree/recover.rs:100
↓ 1 callersMethodrecover_inactive_twig_roots
Recovers root hashes for inactive twigs This function rebuilds twig root hashes for twigs that are no longer active but still need to be referenced i
crates/qmdb/src/merkletree/recover.rs:295
↓ 1 callersMethodrecover_twigs
Recovers all twigs in the tree This function: 1. Scans and recovers entries 2. Synchronizes the youngest twig's Merkle tree 3. Updates active bits tr
crates/qmdb/src/merkletree/recover.rs:250
↓ 1 callersMethodrecover_upper_nodes
Recovers upper tree nodes from edge nodes This function: 1. Restores edge nodes to their positions 2. Synchronizes the upper tree 3. Returns the new
crates/qmdb/src/merkletree/recover.rs:277
↓ 1 callersMethodrelease
(&self, index: usize)
crates/qmdb/src/utils/bitmap.rs:62
↓ 1 callersMethodremove
(&mut self, index: usize)
crates/qmdb/src/tasks/task_id_set.rs:19
↓ 1 callersMethodremove_entry
remove an entry that may or may not be existent
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:119
↓ 1 callersFunctionremove_kh2e_record
(batch: &mut WriteBatchWithTransaction<false>, key_hash: &[u8; 32])
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:514
↓ 1 callersMethodremove_useless_nodes
(&mut self, start: u64, end: u64, max_level: i64)
crates/qmdb/src/merkletree/tree.rs:276
↓ 1 callersMethodreset_block_state
(&mut self)
crates/qmdb/src/seqads.rs:291
↓ 1 callersMethodreturn_buf
Returns a buffer to the pool. # Arguments `id` - ID of the buffer to return
crates/qmdb/src/prefetcher/dioprefetcher.rs:1328
↓ 1 callersFunctionrocksdb_create_kv
(rks_db: &mut RocksDB, task_list: &[RwLock<Option<SimpleTask>>])
bench/src/speed/rocksdb.rs:153
↓ 1 callersMethodrouting_key
(&self)
crates/qmdb/src/prefetcher/dioprefetcher.rs:466
↓ 1 callersMethodrouting_uring_id
(&self, uring_count: usize)
crates/qmdb/src/prefetcher/dioprefetcher.rs:479
↓ 1 callersFunctionrun
(seed: u64)
crates/qmdb/examples/v4_memidx.rs:21
↓ 1 callersFunctionrun
(randsrc: &mut RandSrc, rfu: &mut RefUnit, dut: &Arc<IndexerToTest>)
crates/qmdb/examples/v3_indexer.rs:81
↓ 1 callersFunctionrun
( config: RunConfig, #[cfg(feature = "qmdb_bench_correctness")] mut correctness_model: Option<BitmapMo
bench/src/bin/speed.rs:225
↓ 1 callersFunctionrun_at
( randsrc: &mut RandSrc, his_entry: &mut HistoryEntry, rfu: &mut RefUnit, dut: &Arc<IndexerToT
crates/qmdb/examples/v3_indexer.rs:119
↓ 1 callersFunctionrun_benchmark
( entry_count: u64, block_size: usize, subblock_size: usize, num_blocks: usize, descriptio
bench/src/bin/test_gen_bench.rs:62
↓ 1 callersFunctionrun_fuzz_single_round
( test_gen: &mut TestGenV1, ads: &mut AdsWrap<SimpleTask>, task_file_sn: usize, )
crates/qmdb/examples/v1_refdbfuzz/main.rs:80
↓ 1 callersFunctionrun_fuzz_tests
(task_file_num: usize, stop_height: usize)
crates/qmdb/examples/v1_refdbfuzz/main.rs:178
↓ 1 callersFunctionrun_hover_tasks
(config: HoverTaskConfig)
bench/src/bin/speed.rs:440
↓ 1 callersFunctionrun_phase
Run a single CRUD phase as a pipelined QMDB block, using tasks and changesets similar to `run_single_hover_block` in `speed.rs`. - `op`: one of OP_RE
bench/src/bin/crud.rs:285
↓ 1 callersFunctionrun_round_comparison
()
bench/src/bin/test_gen_bench.rs:131
↓ 1 callersFunctionrun_single_hover_block
(config: SingleHoverBlockConfig)
bench/src/bin/speed.rs:852
↓ 1 callersFunctionrun_streaming_benchmark
()
bench/src/bin/test_gen_bench.rs:201
↓ 1 callersMethodrun_task
Runs a task by processing its change sets. # Arguments `ebw` - Entry buffer writer guard `task_id` - ID of the task to run `end_block` - Whether this
crates/qmdb/src/updater.rs:533
↓ 1 callersMethodrun_task
(&self, task_id: i64)
crates/qmdb/src/prefetcher/uniprefetcher.rs:176
↓ 1 callersMethodrun_task_with_ooo_id
Handles out-of-order task IDs by maintaining proper execution order. # Arguments `ebw` - Entry buffer writer guard `task_id` - ID of the task to run
crates/qmdb/src/updater.rs:483
↓ 1 callersFunctionrun_uring_loop
( entry_files: Arc<Vec<Arc<EntryFile>>>, mut rx: mpsc::Receiver<UringReadRequest>, queue_depth: u3
crates/qmdb/src/entryfile/uring_reader.rs:667
↓ 1 callersMethodrun_warmup
Runs a warmup job for prefetching. # Arguments `file_pos` - Position in the entry file `shard_id` - ID of the shard `cache` - Cache to store the fetc
crates/qmdb/src/prefetcher/dioprefetcher.rs:247
↓ 1 callersMethodscan_entries
Scans and recovers entries from the entry file This function reads all entries from the specified position and: 1. Recovers each entry's state 2. Upd
crates/qmdb/src/merkletree/recover.rs:158
↓ 1 callersMethodscan_entries_lite
Performs a lightweight scan of entries without full recovery This function is useful for operations that only need to read entry data without modifyi
crates/qmdb/src/merkletree/recover.rs:222
↓ 1 callersFunctionset_bit
(value: u64, position: i64)
crates/qmdb/src/utils/intset.rs:54
↓ 1 callersMethodset_entry
create a new entry or update an existent entry
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:131
↓ 1 callersMethodset_entry_buf_reader
Sets the entry buffer reader for a specific shard. # Arguments `shard_id` - ID of the shard `ebr` - Entry buffer reader to set # Performance - Zero-
crates/qmdb/src/flusher/flusher.rs:323
↓ 1 callersMethodset_stop_block
Sets the block height at which to stop processing. # Arguments `height` - Block height to stop at only for test
crates/qmdb/src/lib.rs:1174
↓ 1 callersMethodset_with_twig_file
Enables or disables the use of twig files. Twig files can improve tree traversal performance at the cost of additional storage space. # Arguments `w
crates/qmdb/src/config.rs:301
↓ 1 callersFunctionshuffle_with_lfsr
(ids: &mut [u64], seed: u64)
bench/src/bin/crud.rs:460
↓ 1 callersFunctionshuffled_id_range
(start: u64, count: u64, seed: u64)
bench/src/bin/crud.rs:447
↓ 1 callersMethodshutdown
Shutdown and wait for all workers
bench/src/speed/streaming_gen.rs:473
↓ 1 callersMethodsize_on_disk
(&self)
crates/qmdb/src/entryfile/entryfile.rs:83
↓ 1 callersMethodslot_index
(&self, id: i64)
crates/hpfile/src/file_slots.rs:188
↓ 1 callersFunctionslot_short_key
(key: &[u8])
crates/qmdb-common/src/utils/short_key.rs:137
↓ 1 callersMethodstart
Start metering.
crates/qmdb-common/src/utils/instruction_meter.rs:58
↓ 1 callersMethodstart_block_with_cache
Starts processing a new block with a specific cache. # Arguments `height` - Block height to process `cache` - Cache to use for the block `tasks_manag
crates/qmdb/src/lib.rs:1208
↓ 1 callersMethodstart_thread
Starts the updater thread for processing tasks. # Arguments `mid` - Receiver for task IDs to process # Process Flow 1. Acquire update buffer lock 2.
crates/qmdb/src/updater.rs:418
↓ 1 callersMethodstart_threads
Starts the database's background threads. # Arguments `flusher` - Flusher instance for managing state persistence `compact_thres` - Compaction thresh
crates/qmdb/src/lib.rs:851
↓ 1 callersMethodstart_threads
Starts the prefetcher threads. # Arguments `task_receiver` - Channel for receiving task IDs to process
crates/qmdb/src/prefetcher/dioprefetcher.rs:227
↓ 1 callersFunctionstep
(dut: &mut Unit4Test, lfsr: &mut GaloisLfsr)
crates/qmdb/examples/v4_memidx.rs:41
↓ 1 callersFunctionstep
( height: u8, pos: u64, last_pos: u64, hashes: &[[u8; 32]], bits_words
crates/qmdb-common/src/merkletree/multiproof.rs:171
↓ 1 callersMethodsync_nodes_by_level
( &mut self, level: i64, n_list: Vec<u64>, youngest_twig_id: u64, )
crates/qmdb/src/merkletree/tree.rs:318
↓ 1 callersMethodtask_for_write
(&self, idx: usize)
crates/qmdb/src/tasks/tasksmanager.rs:45
↓ 1 callersMethodtest_compact
Tests compaction functionality. # Arguments `r` - Optional operation record for verification `comp_idx` - Index for compaction tracking This is a te
crates/qmdb/src/updater.rs:750
↓ 1 callersMethodtotal_pop_blocks
Get total population blocks (Round 0)
bench/src/speed/streaming_gen.rs:487
↓ 1 callersMethodtouch_pos
Records that a position has been touched during the current block execution # Arguments `sn` - Serial number of the touched position
crates/qmdb/src/merkletree/tree.rs:732
↓ 1 callersMethodtruncate
Truncate the file to make it smaller. Removes complete segments that exceed `size`, then truncates the last remaining segment to the exact size neede
crates/hpfile/src/lib.rs:282
↓ 1 callersMethodtruncate_files
Truncates the entry and twig files to the specified sizes # Arguments `entry_file_size` - New size for the entry file `twig_file_size` - New size for
crates/qmdb/src/merkletree/tree.rs:663
↓ 1 callersMethodtry_acquire
(&self)
crates/qmdb/src/utils/bitmap.rs:26
↓ 1 callersFunctionunset_bit
(value: u64, position: i64)
crates/qmdb/src/utils/intset.rs:69
↓ 1 callersMethodupdate_entries_in_db
(&mut self, entries: u64)
bench/src/speed/results.rs:433
↓ 1 callersMethodupdate_kv
Write (update) an existing key-value entry
crates/qmdb-common/src/mutator/entrymutator.rs:176
↓ 1 callersMethoduring_finish_sub_job
Finishes processing a sub-job. # Arguments `buf_id` - ID of the buffer `job` - Job being processed `sub_id` - ID of the sub-job `buf_list` - Referenc
crates/qmdb/src/prefetcher/dioprefetcher.rs:1118
↓ 1 callersMethodwait_for_large_enough
(&self, shard_id: usize)
crates/qmdb/src/indexer/hybrid/mod.rs:67
↓ 1 callersFunctionwalk
( height: u8, pos: u64, last_pos: u64, matched_nodes: &HashSet<(u8, u64)>,
crates/qmdb-common/src/merkletree/multiproof.rs:77
↓ 1 callersMethodwarmup_cache
Warms up the cache for a specific height and key prefix. # Arguments `height` - Block height to warm up `k80` - 80-bit key prefix for selective warmi
crates/qmdb/src/lib.rs:731
↓ 1 callersFunctionwrite_changesets_to_qmdb
(ads: &mut AdsWrap<SimpleTask>, changesets: Vec<ChangeSet>)
crates/qmdb/src/test_helper/mod.rs:220
← previousnext →701–800 of 1,374, ranked by callers