Fix attach of a previously-detached injection point.

Noah Misch <noah@leadboat.com>

Commit: 6b1f78d90b5f2475d968e16febee8f9d43730d63
Author: Noah Misch <noah@leadboat.com>
Date: 2024-08-22T07:07:09Z
Releases: 17.0
Fix attach of a previously-detached injection point.

It's normal for the name in a free slot to match the new name.  The
max_inuse mechanism kept simple cases from reaching the problem.  The
problem could appear when index 0 was the previously-detached entry and
index 1 is in use.  Back-patch to v17, where this code first appeared.

Files

PathChange+/−
src/backend/utils/misc/injection_point.c modified +1 −2