mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-09 13:28:19 +00:00
WIP new approach with upcasts
This commit is contained in:
parent
fe1b06a48a
commit
c84bd1b5c2
26 changed files with 655 additions and 1010 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue