Skip to content

Commit 83e01aa

Browse files
committed
changefeedccl: prevent panic in per-table PTS mixed-version
Fixes a panic that occurred when evaluating per-table protected timestamp settings. The fix adds a nil check on the change aggregator spec ProgressConfig before accessing the per-table PTS flag. Fixes: #154830 Epic: CRDB-1421 Release note: None
1 parent 29de882 commit 83e01aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ccl/changefeedccl/changefeed_processors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1975,7 +1975,7 @@ func (cf *changeFrontier) manageProtectedTimestamps(
19751975
return cf.frontier.Frontier()
19761976
}()
19771977

1978-
if cf.spec.ProgressConfig.PerTableProtectedTimestamps {
1978+
if cf.spec.ProgressConfig != nil && cf.spec.ProgressConfig.PerTableProtectedTimestamps {
19791979
return cf.managePerTableProtectedTimestamps(ctx, txn, &ptsEntries, highwater)
19801980
}
19811981

0 commit comments

Comments
 (0)