Skip to content

Commit

Permalink
Fix rebase regression.
Browse files Browse the repository at this point in the history
This branch did not pickup an important fix in master that assigns the
same timestamp ti all updates made within a transaction.
  • Loading branch information
ryzhyk committed May 13, 2020
1 parent 277fb46 commit e73331d
Show file tree
Hide file tree
Showing 4 changed files with 470,025 additions and 470,028 deletions.
5 changes: 2 additions & 3 deletions rust/template/differential_datalog/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1426,12 +1426,11 @@ impl Program {
}
}
};
epoch += 1;
//print!("epoch: {}\n", epoch);
Self::advance(&mut sessions, &mut traces, epoch);
},
Ok(Msg::Flush) => {
//println!("flushing");
epoch += 1;
Self::advance(&mut sessions, &mut traces, epoch);
Self::flush(&mut sessions, &probe, worker, &peers, &frontier_ts, &progress_barrier);
//println!("flushed");
reply_send.send(Reply::FlushAck).map_err(|e| format!("failed to send ACK: {}", e))?;
Expand Down
28 changes: 13 additions & 15 deletions test/datalog_tests/simple2.log.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@
2: insert: (3.5, 1, 4.5)
2: insert: (3.5, 2, 5.5)
2: insert: (3.5, 3.5, 7)
3: insert: x=1, total=1
4: delete: x=1, total=1
4: insert: x=1, total=3
7: insert: y=2
8: insert: y=3
10: insert: y=5
12: delete: y=2
16: insert: x=1 y=1
16: delete: x=1 y=1
17: insert: x=2 y=2
17: delete: x=2 y=2
18: insert: x=3 y=3
18: delete: x=3 y=3
19: insert: x=4 y=4
20: insert: x=2 y=2
3: insert: x=1, total=3
4: insert: y=2
4: insert: y=3
4: insert: y=5
5: delete: y=2
7: insert: x=4 y=4
7: insert: x=1 y=1
7: delete: x=1 y=1
7: insert: x=3 y=3
7: delete: x=3 y=3
7: insert: x=2 y=2
7: delete: x=2 y=2
8: insert: x=2 y=2
Loading

0 comments on commit e73331d

Please sign in to comment.