Refactor WaitLSNType enum to use a macro for type count master github/master
authorAlexander Korotkov <[email protected]>
Sun, 14 Dec 2025 15:18:32 +0000 (17:18 +0200)
committerAlexander Korotkov <[email protected]>
Sun, 14 Dec 2025 15:18:32 +0000 (17:18 +0200)
commitb27e48213fbc1d0ff698be4ae5a0eb3e161d9172
tree488723c71472770d681a82c77d44f3dd8511ac3e
parentc5ae07a90a0f3594e5053a26f3c99b041df427d3
Refactor WaitLSNType enum to use a macro for type count

Change WAIT_LSN_TYPE_COUNT from an enum sentinel to a macro definition,
in a similar way to IOObject, IOContext, and BackendType enums.  Remove
explicit enum value assignments well.

Author: Xuneng Zhou <[email protected]>
src/backend/access/transam/xlogwait.c
src/include/access/xlogwait.h