Skip to content

Commit

Permalink
defend against uncertain cursor semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmcsherry committed Aug 4, 2021
1 parent dc76793 commit b0df756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dataflow/src/render/context.rs
Expand Up @@ -526,7 +526,9 @@ impl<K: PartialEq, V, T: Timestamp, R, C: Cursor<K, V, T, R>> PendingWork<K, V,
let mut work: usize = 0;
let mut session = output.session(&self.capability);
if let Some(key) = key {
self.cursor.seek_key(&self.batch, key);
if self.cursor.get_key(&self.batch) != Some(key) {
self.cursor.seek_key(&self.batch, key);
}
if self.cursor.get_key(&self.batch) == Some(key) {
while let Some(val) = self.cursor.get_val(&self.batch) {
self.cursor.map_times(&self.batch, |time, diff| {
Expand Down

0 comments on commit b0df756

Please sign in to comment.