Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
roseduan committed Nov 11, 2024
1 parent e953362 commit e7cf12b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/fts/ftsmessagehandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ CreateReplicationSlotOnPromote(const char *name)
static void
HandleFtsWalRepPromote(void)
{
#if defined(FAULT_INJECTOR) || !defined(USE_INTERNAL_FTS)
#if !defined(USE_INTERNAL_FTS) || defined(FAULT_INJECTOR)
FtsResponse response = {
false, /* IsMirrorUp */
false, /* IsInSync */
Expand Down Expand Up @@ -453,7 +453,7 @@ HandleFtsWalRepPromote(void)
" DBState = %d", state);
}

#if defined(FAULT_INJECTOR) || !defined(USE_INTERNAL_FTS)
#if !defined(USE_INTERNAL_FTS) || defined(FAULT_INJECTOR)
skip_promote:
SendFtsResponse(&response, FTS_MSG_PROMOTE);
#endif
Expand Down

0 comments on commit e7cf12b

Please sign in to comment.