mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Add tracing for remapping parameters
This commit is contained in:
parent
3b09b9892c
commit
3691779408
1 changed files with 4 additions and 1 deletions
|
@ -52,11 +52,14 @@ impl Parameters {
|
|||
}
|
||||
|
||||
pub fn set_parameter_remap(&mut self, remap: Vec<NonZero<usize>>) {
|
||||
tracing::debug!("remap: {:?}", remap);
|
||||
self.remap = remap;
|
||||
}
|
||||
|
||||
pub fn get_remapped_value(&self, idx: NonZero<usize>) -> NonZero<usize> {
|
||||
*self.remap.get(idx.get() - 1).unwrap_or(&idx)
|
||||
let res = *self.remap.get(idx.get() - 1).unwrap_or(&idx);
|
||||
tracing::debug!("get_remapped_value: {idx}, value: {res}");
|
||||
res
|
||||
}
|
||||
|
||||
pub fn name(&self, index: NonZero<usize>) -> Option<String> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue