WIP new approach with upcasts

This commit is contained in:
Niko Matsakis 2024-07-10 08:13:00 -04:00
parent fe1b06a48a
commit c84bd1b5c2
26 changed files with 655 additions and 1010 deletions

View file

@ -1,9 +1,8 @@
use std::sync::Arc;
use crate::{
debug::DebugWithDb,
runtime::{local_state::ActiveQueryGuard, StampedValue},
storage::HasJarsDyn,
storage::DatabaseGen,
Cycle, Database, Event, EventKind,
};
@ -49,9 +48,7 @@ where
Ok(v) => v,
Err(cycle) => {
log::debug!(
"{:?}: caught cycle {:?}, have strategy {:?}",
database_key_index.debug(db),
cycle,
"{database_key_index:?}: caught cycle {cycle:?}, have strategy {:?}",
C::CYCLE_STRATEGY
);
match C::CYCLE_STRATEGY {
@ -101,11 +98,7 @@ where
let stamped_value = revisions.stamped_value(value);
log::debug!(
"{:?}: read_upgrade: result.revisions = {:#?}",
database_key_index.debug(db),
revisions
);
log::debug!("{database_key_index:?}: read_upgrade: result.revisions = {revisions:#?}");
stamped_value
}