Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
64653: tabledesc: prevent panic when removing constraint from Checks slice r=postamar a=postamar Recently, a run of the TestRandomSyntaxSchemaChangeColumn test failed with a panic in tabledesc.MakeMutationComplete, see #63944. The panic was triggered by removing multiple elements from the Checks slice in the descriptor. While the underlying issue of _how_ this slice could possibly contain two constraints sharing the same name has not yet been resolved, deleting only the first constraint matching the target name will prevent future panics and perhaps help diagnose the underlying issue. Release note: None Co-authored-by: Marius Posta <[email protected]>
- Loading branch information