pgsql: injection_points: Move some structs to new header injection_poin

Started by Michael Paquier2 months ago1 messagescomitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

injection_points: Move some structs to new header injection_points.h

This commit moves the definitions of InjectionPointConditionType and
InjectionPointCondition into a new header local to the test module
injection_points.h, so as these can be shared across more files in the
module. A patch for a bug fix is under discussion, whose proposed test
will benefit from this refactoring.

Backpatch down to where the module exists, as this should be useful for
future bug fixes, even cases unrelated to the thread where this change
has been discussed.

Author: Andrey Borodin <x4mmm@yandex-team.ru>
Author: Vlad Lesin <vladlesin@gmail.com>
Discussion: /messages/by-id/d2983796-2603-41b7-a66e-fc8489ddb954@gmail.com
Backpatch-through: 17

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e7b416b2fa444ca93d0ef1bd22b02747255733f7

Modified Files
--------------
.../modules/injection_points/injection_points.c | 25 +---------------
.../modules/injection_points/injection_points.h | 33 ++++++++++++++++++++++
2 files changed, 34 insertions(+), 24 deletions(-)