MCPcopy Create free account

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

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

↓ 2 callersMethodset_first_twig_at_height
Sets the first twig ID and entry file size at a specific height. # Arguments `shard_id` - ID of the shard `height` - Block height `twig_id` - First t
crates/qmdb/src/metadb.rs:713
↓ 2 callersMethodset_last_pruned_twig
Sets the last pruned twig information for a shard. # Arguments `shard_id` - ID of the shard `twig_id` - ID of the last pruned twig `ef_prune_to` - En
crates/qmdb/src/metadb.rs:782
↓ 2 callersMethodset_len
(&mut self, new_len: usize)
crates/hpfile/src/aligned_buf.rs:211
↓ 2 callersMethodset_oldest_active_file_pos
Sets the oldest active file position for a shard. # Arguments `shard_id` - ID of the shard `pos` - New oldest active file position # State Changes -
crates/qmdb/src/metadb.rs:1002
↓ 2 callersMethodset_oldest_active_sn
Sets the oldest active serial number for a shard. # Arguments `shard_id` - ID of the shard `id` - New oldest active serial number # State Changes -
crates/qmdb/src/metadb.rs:972
↓ 2 callersMethodset_task
(&self, idx: usize, task: T)
crates/qmdb/src/tasks/tasksmanager.rs:51
↓ 2 callersMethodsize
Returns the size of the virtual large file, including the non-flushed bytes
crates/hpfile/src/lib.rs:246
↓ 2 callersMethodstart
Starts the io_uring worker thread. Consumes self and spawns a dedicated thread for io_uring operations. # Arguments `entry_files` - Vec of EntryFiles
crates/qmdb/src/entryfile/uring_reader.rs:202
↓ 2 callersMethodstart_flag
(&self)
crates/qmdb-common/tests/reference_impl.rs:190
↓ 2 callersFunctionsubmit_request
( uring: &mut io_uring::IoUring, in_flight: &mut [Option<InFlightRequest>], slot: usize, req:
crates/qmdb/src/entryfile/uring_reader.rs:831
↓ 2 callersMethodtemp_clone
Creates a temporary clone of the writer The clone shares the same twig file but has an empty write buffer. # Returns A new TwigFileWriter instance
crates/qmdb/src/merkletree/twigfile.rs:371
↓ 2 callersFunctionto_hash64
(inputs: &[&[u8]])
crates/qmdb/src/test_helper/randsrc.rs:152
↓ 2 callersFunctionto_k80
(k64: u64)
crates/qmdb/src/test_helper/mod.rs:20
↓ 2 callersFunctionto_key_pos
(k: u64, pos: i64)
crates/qmdb/src/indexer/hybrid/def.rs:20
↓ 2 callersMethodtotal_num_active
(&self)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:203
↓ 2 callersMethodtruncate
Truncates the twig file to the specified size # Arguments `size` - New size in bytes # Panics If the truncate operation fails
crates/qmdb/src/merkletree/twigfile.rs:316
↓ 2 callersMethodtry_read
(&self, file_id: i64, start: i64, bz: &mut [u8])
crates/hpfile/src/lib.rs:811
↓ 2 callersMethodupdate_cache_entry
(&mut self, key: &[u8], value: Option<&[u8]>)
crates/qmdb/src/seqads.rs:284
↓ 2 callersFunctionupdate_kv
(_: i64, task_list: Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/mdbx.rs:38
↓ 2 callersMethodvalue
Returns a reference to the value bytes of this entry.
crates/qmdb-common/src/entryfile/entry.rs:464
↓ 2 callersMethodverify
Verify and return pairs of (serial_number, leaf_hash) in canonical order
crates/qmdb-common/src/merkletree/multiproof.rs:329
↓ 2 callersMethodwrite_kv
Writes a key-value pair to the database. # Arguments `ebw` - Entry buffer writer guard `key_hash` - Hash of the key to write `key` - Key to write `va
crates/qmdb/src/updater.rs:590
↓ 1 callersMethodaccess_list
( &self, list: &ShortList, k: u64, prev_k: u64, k80: &mut [u8],
crates/qmdb/src/indexer/hybrid/unit.rs:183
↓ 1 callersMethodadd
(&mut self, value: f64, entry_count: u64)
bench/src/speed/results.rs:120
↓ 1 callersMethodadd_chunk_chaining_value
Section 5.1.2 of the BLAKE3 spec explains this algorithm in more detail.
crates/qmdb-common/tests/reference_impl.rs:327
↓ 1 callersMethodadd_kv
(&mut self, idx: u64, k_in: u64, v_in: i64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:57
↓ 1 callersMethodadd_kv
(&self, key: &[u8], position: i64, serial_number: u64)
crates/qmdb-common/src/mutator/entrymutator.rs:438
↓ 1 callersMethodadd_sub_job
Adds a sub-job and checks if it needs to read from SSD. # Arguments `j` - Reference to the parent job `sj` - Reference to the sub-job # Returns `tru
crates/qmdb/src/prefetcher/dioprefetcher.rs:624
↓ 1 callersMethodadd_twigs
(&mut self, twig_map: HashMap<u64, Box<twig::Twig>>)
crates/qmdb/src/merkletree/tree.rs:219
↓ 1 callersFunctionaddr_short_key
(key: &[u8])
crates/qmdb-common/src/utils/short_key.rs:121
↓ 1 callersMethodallocate_big_buf
(&self)
crates/qmdb/src/entryfile/entrybuffer.rs:153
↓ 1 callersMethodallocate_buf
Allocates a buffer from the pool. # Returns A tuple containing: - A mutable reference to the allocated buffer - The buffer ID
crates/qmdb/src/prefetcher/dioprefetcher.rs:1295
↓ 1 callersMethodallocate_cache
Allocates a new entry cache. # Returns A new entry cache instance
crates/qmdb/src/lib.rs:1151
↓ 1 callersFunctionallocate_indexer_entries
(_randsrc: &mut RandSrc, count: u64)
crates/qmdb/examples/v3_indexer.rs:218
↓ 1 callersMethodas_bytes
Returns the underlying data as a byte slice
crates/qmdb-common/src/merkletree/activebits.rs:89
↓ 1 callersMethodas_iovecs
Returns all buffers as iovecs for io_uring registration
crates/qmdb/src/prefetcher/dioprefetcher.rs:1333
↓ 1 callersMethodas_u64
Returns the raw 64-bit position value
crates/qmdb/src/merkletree/tree.rs:110
↓ 1 callersFunctionblake2b_hash_slices_inplace
(output: &mut Hash32, inputs: &[&[u8]])
crates/qmdb-common/src/utils/hasher.rs:94
↓ 1 callersFunctionblake3_keyed_hash_inplace
( output: &mut AlignedHash32, key: usize, left: &AlignedHash32, right: &AlignedHash32, )
crates/qmdb-common/src/utils/hasher.rs:66
↓ 1 callersMethodbuild_job_channel
Builds job channels for task and warmup jobs. # Returns A tuple containing: - Arc reference to self - Receiver for task jobs - Vector of receivers fo
crates/qmdb/src/prefetcher/dioprefetcher.rs:650
↓ 1 callersFunctionbuild_key_and_expected_value
(num: u64, expected_round: u32)
bench/src/speed/correctness.rs:203
↓ 1 callersFunctioncalc_node_hash_qmdb
Helper to compute node hash with a null-right policy for arbitrary n
crates/qmdb/src/merkletree/multiproof.rs:160
↓ 1 callersMethodchange_kv
(&self, k80: &[u8], v_old: i64, v_new: i64, sn_old: u64, sn_new: u64)
crates/qmdb/src/indexer/hybrid/mod.rs:297
↓ 1 callersFunctionchange_twig_roots
(tree: &mut Tree, id_list: Vec<u64>)
crates/qmdb/tests/test_tree.rs:691
↓ 1 callersMethodcheck_entry
(&self, entry_bz: &EntryBz)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:220
↓ 1 callersFunctioncheck_node_existence
(tree: &Tree, start: u64, end: u64)
crates/qmdb/tests/test_tree.rs:653
↓ 1 callersFunctioncheck_twig
Verifies the consistency of a twig's active bits Merkle tree This function checks that: 1. Level 1 nodes correctly hash their active bits 2. Level 2
crates/qmdb/src/merkletree/check.rs:156
↓ 1 callersFunctioncheck_upper_nodes_internal
Internal helper for checking upper tree node consistency For each node in a shard, verifies that its hash matches its children's hashes. Handles both
crates/qmdb/src/merkletree/check.rs:104
↓ 1 callersMethodclear
(&mut self)
crates/qmdb/src/indexer/hybrid/index_cache.rs:93
↓ 1 callersMethodclear
(&mut self)
crates/qmdb-common/src/indexer/utils/poslist.rs:61
↓ 1 callersFunctionclear_cache_pos_value_len
(cache_pos: u64)
crates/qmdb/src/utils/bytescache.rs:71
↓ 1 callersMethodcompact
(&mut self)
crates/qmdb/src/indexer/memidx.rs:322
↓ 1 callersMethodcompare_active_info
Compares active entry information with a record. # Arguments `rec` - Optional operation record for verification # Verification - Entry existence - V
crates/qmdb/src/updater.rs:882
↓ 1 callersFunctioncompare_dig_entry
Public wrapper for _compare_dig_entry.
crates/qmdb/src/updater.rs:1052
↓ 1 callersFunctioncompare_metainfo
(a: &MetaInfo, b: &MetaInfo)
crates/qmdb/src/test_helper/mod.rs:84
↓ 1 callersFunctioncompare_nodes
( nodes_a: &Vec<Vec<HashMap<NodePos, [u8; 32]>>>, nodes_b: &Vec<Vec<HashMap<NodePos, [u8; 32]>>>, )
crates/qmdb/tests/test_recover.rs:11
↓ 1 callersFunctioncompare_put_entry
Public wrapper for _compare_put_entry.
crates/qmdb/src/updater.rs:1059
↓ 1 callersFunctioncompare_twig
(twig_id: u64, a: &Twig, b: &Twig)
crates/qmdb/src/merkletree/helpers.rs:205
↓ 1 callersFunctioncompare_twigs
( twig_map_a: &Vec<HashMap<u64, Box<Twig>>>, twig_map_b: &Vec<HashMap<u64, Box<Twig>>>, active_bit
crates/qmdb/tests/test_recover.rs:26
↓ 1 callersFunctioncompute_active_bits_top
Computes the level-11 right-subtree top hash (active_bits_mtl3) from a right path.
crates/qmdb/src/merkletree/singleproof.rs:59
↓ 1 callersMethodcompute_idx
(&self, hash: u64)
crates/qmdb-common/src/utils/simplemap.rs:94
↓ 1 callersMethodconsume
Receives an item from the producer. # Returns The received item # Panics If the channel is disconnected
crates/qmdb/src/utils/ringchannel.rs:88
↓ 1 callersMethodcontains
(&self, elem: i64)
crates/qmdb-common/src/indexer/utils/poslist.rs:19
↓ 1 callersFunctioncount_leading_zeros
(buf: &[u8])
crates/qmdb/src/entryfile/entrycache.rs:154
↓ 1 callersMethodcreate_kv
create a new entry with 'key' and 'value'
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:345
↓ 1 callersFunctioncreate_null_mt_for_twig
Creates a null Merkle tree for a twig This tree represents an empty twig where all entries are null. The tree is structured with: - Levels 0: 2048 le
crates/qmdb-common/src/merkletree/null.rs:582
↓ 1 callersFunctioncreate_null_node_in_higher_tree
Creates an array of null node hashes for levels above the twig # Arguments `null_twig` - A null twig instance to use as the base for computing higher
crates/qmdb-common/src/merkletree/null.rs:632
↓ 1 callersFunctioncreate_null_twig
Creates a null twig instance with all fields initialized to represent empty state # Arguments `null_mt_for_twig` - The root hash of a null Merkle tre
crates/qmdb-common/src/merkletree/null.rs:608
↓ 1 callersMethoddebug_get_adjacent_values
( &self, k80: &[u8], idx: u64, k_in: u64, )
crates/qmdb/src/indexer/hybrid/ref_unit.rs:187
↓ 1 callersMethoddebug_get_values
(&self, _idx: u64, k_in: u64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:168
↓ 1 callersMethoddelete
(&mut self, key: K)
bench/src/speed/rocksdb.rs:105
↓ 1 callersMethoddelete_kv
remove the entry 'old'
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:269
↓ 1 callersMethoddelete_node
(&mut self, pos: NodePos)
crates/qmdb/src/merkletree/tree.rs:266
↓ 1 callersFunctionderive_lfsr_seed
(base: u64, salt: u64)
bench/src/bin/crud.rs:472
↓ 1 callersFunctiondo_sync_job
( upper_tree: &UpperTree, nodes: &mut HashMap<NodePos, [u8; 32]>, level: i64, shard_id: usize,
crates/qmdb/src/merkletree/tree.rs:439
↓ 1 callersMethoddsn_count
Returns the number of deactivated serial numbers in this entry.
crates/qmdb-common/src/entryfile/entry.rs:539
↓ 1 callersMethoddump_to
(&self, out: &mut Self)
crates/qmdb/src/indexer/memidx.rs:116
↓ 1 callersMethodencode_meta_info
(&self)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:178
↓ 1 callersMethodend_block
flush the meta info to DB when ending a block
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:168
↓ 1 callersMethodend_tx
(&mut self)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:195
↓ 1 callersMethodensure_key_existence_known
(&mut self, key: &[u8])
crates/qmdb/src/seqads.rs:243
↓ 1 callersFunctionentry_key_hash_inplace
Computes the hash for a key, excluding null and sentry entries.
crates/qmdb-common/src/entryfile/entry.rs:335
↓ 1 callersMethoderase_kv
(&self, k80: &[u8], v_in: i64, sn: u64)
crates/qmdb/src/indexer/hybrid/mod.rs:273
↓ 1 callersMethoderase_kv
(&mut self, idx: u64, k_in: u64, v_in: i64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:67
↓ 1 callersMethoderase_kv
(&self, key: &[u8], position: i64, serial_number: u64)
crates/qmdb-common/src/mutator/entrymutator.rs:446
↓ 1 callersFunctionexclude_end_block
(task_id: i64)
crates/qmdb-common/src/task/taskid.rs:75
↓ 1 callersMethodexistence_state
Returns the expected existence state for a logical key number. Semantics: - Stable range [0, entry_count_wo_del): always returns Some(true), since th
bench/src/speed/correctness.rs:183
↓ 1 callersFunctionextract_summary_statistics
(results)
bench/results2benchmark.py:49
↓ 1 callersFunctionfill_key
Partially fill a preallocated key buffer deterministically based on `n`. Returns the filled slice of the buffer that represents the key bytes.
crates/qmdb/src/test_helper/testgen.rs:22
↓ 1 callersMethodfill_slice
(&mut self, file_id: i64, start: i64, access: F)
crates/hpfile/src/lib.rs:800
↓ 1 callersFunctionfill_value
Fill a preallocated value buffer with all bytes of `v` repeated, length derived from `n`. Returns the slice of the buffer that represents the value b
crates/qmdb/src/test_helper/testgen.rs:35
↓ 1 callersMethodfind_page_id
(&self, k: u64)
crates/qmdb/src/indexer/hybrid/unit.rs:379
↓ 1 callersMethodfind_page_id_k64
(&self, k: u64)
crates/qmdb/src/indexer/hybrid/unit.rs:393
↓ 1 callersMethodflush
Main flush loop that coordinates operations across all shards. This method implements the core flushing logic: 1. Block Height Management: - Incremen
crates/qmdb/src/flusher/flusher.rs:279
↓ 1 callersMethodflush_pending
Process all pending fd registrations (must be called after submission queue is released)
crates/qmdb/src/prefetcher/dioprefetcher.rs:91
↓ 1 callersFunctionflush_until_height
(ads: &mut AdsWrap<SimpleTask>, target_height: i64)
bench/src/bin/crud.rs:492
↓ 1 callersMethodfor_each_adjacent_value
(&self, h: i64, k80: &[u8])
crates/qmdb/src/indexer/hybrid/mod.rs:343
↓ 1 callersMethodfor_each_value_warmup
(&self, h: i64, k80: &[u8])
crates/qmdb/src/indexer/hybrid/mod.rs:339
↓ 1 callersMethodgen_add
(&mut self, keys: &mut HashSet<u32>)
crates/qmdb/src/test_helper/testgen.rs:388
↓ 1 callersMethodgen_block
(&mut self)
crates/qmdb/src/test_helper/testgen.rs:233
← previousnext →501–600 of 1,374, ranked by callers