Skip to content

sql/schemachanger: fix incorrect filter for secondary index recreation during a pk swap #154751

@fqazi

Description

@fqazi

The secondary index rule for swapping out indexes during a primary recreation have a bug, which can prevent the deprule from being enforced consistently. This issues lies at:

func(from *scpb.PrimaryIndex, to *scpb.SecondaryIndex) bool {

The filter incorrectly operates on the old secondary index instead of the new one and has the incorrect parameter order. So it very likely was never enforced.

Jira issue: CRDB-55105

Metadata

Metadata

Assignees

Labels

C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.branch-masterFailures and bugs on the master branch.branch-release-25.4Used to mark GA and release blockers and technical advisories for 25.4

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions