Skip to content

Commit

Permalink
fix: Source state was not correctly collected during DAG building
Browse files Browse the repository at this point in the history
  • Loading branch information
chubei committed Mar 1, 2024
1 parent 0f2977e commit c6c70c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dozer-core/src/builder_dag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ impl BuilderDag {

let state = sink.get_source_state().map_err(ExecutionError::Sink)?;
if let Some(state) = state {
match source_states.entry(handle.clone()) {
match source_states.entry(source.clone()) {
Entry::Occupied(entry) => {
if entry.get() != &state {
return Err(ExecutionError::SourceStateConflict(handle));
return Err(ExecutionError::SourceStateConflict(source));
}
}
Entry::Vacant(entry) => {
Expand All @@ -115,7 +115,7 @@ impl BuilderDag {

let op_id = sink.get_latest_op_id().map_err(ExecutionError::Sink)?;
if let Some(op_id) = op_id {
match source_op_ids.entry(handle.clone()) {
match source_op_ids.entry(source.clone()) {
Entry::Occupied(mut entry) => {
*entry.get_mut() = op_id.min(*entry.get());
}
Expand Down

0 comments on commit c6c70c6

Please sign in to comment.