Skip to content

Commit 564bd38

Browse files
committed
improve comment
1 parent 154b7ab commit 564bd38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/adapter/src/coord/sequencer/inner.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,6 +3409,9 @@ impl Coordinator {
34093409

34103410
// For `ALTER SINK`, the snapshot should only occur if the sink has not made any progress.
34113411
// This prevents unnecessary decoding in the sink.
3412+
// If the write frontier of the sink is strictly larger than its read hold, it must have at
3413+
// least written out its snapshot, and we can skip reading it; otherwise assume we may have
3414+
// to replay from the beginning.
34123415
let alter_sink_snapshot = with_snapshot && !PartialOrder::less_than(&as_of, write_frontier);
34133416

34143417
// Parse the `create_sql` so we can update it to the new sink definition.

0 commit comments

Comments
 (0)