1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-09 13:09:39 +03:00

Add wait event type "InjectionPoint", a custom type like "Extension".

Both injection points and customization of type "Extension" are new in
v17, so this just changes a detail of an unreleased feature.

Reported by Robert Haas.  Reviewed by Michael Paquier.

Discussion: https://postgr.es/m/CA+TgmobfMU5pdXP36D5iAwxV5WKE_vuDLtp_1QyH+H5jMMt21g@mail.gmail.com
This commit is contained in:
Noah Misch
2024-06-27 19:21:05 -07:00
parent 0844b39689
commit bb93640a68
13 changed files with 215 additions and 131 deletions

View File

@@ -216,7 +216,7 @@ injection_wait(const char *name, const void *private_data)
* this custom wait event name is not released, but we don't care much for
* testing as this should be short-lived.
*/
injection_wait_event = WaitEventExtensionNew(name);
injection_wait_event = WaitEventInjectionPointNew(name);
/*
* Find a free slot to wait for, and register this injection point's name.