Skip to content

Commit e3fc033

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 b51bd5e commit e3fc033

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
@@ -1974,7 +1974,7 @@ func (cf *changeFrontier) manageProtectedTimestamps(
19741974
return cf.frontier.Frontier()
19751975
}()
19761976

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

0 commit comments

Comments
 (0)