You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by ma...@apache.org on 2024/12/02 08:52:42 UTC

(cloudberry) branch main updated: Fix compile error when disable-faultinjector

This is an automated email from the ASF dual-hosted git repository.

maxyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/main by this push:
     new 71c6677dd6 Fix compile error when disable-faultinjector
71c6677dd6 is described below

commit 71c6677dd66b71281228e22fa59a679166df4637
Author: roseduan <du...@hashdata.cn>
AuthorDate: Thu Oct 10 14:55:16 2024 +0800

    Fix compile error when disable-faultinjector
    
    A compile error will occur when --disable-faultinjector option is added
    to the compilation parameters.
    
    Discussion: https://github.com/cloudberrydb/cloudberrydb/issues/555
---
 src/backend/fts/ftsmessagehandler.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/src/backend/fts/ftsmessagehandler.c b/src/backend/fts/ftsmessagehandler.c
index 199a45645d..594e844ab6 100644
--- a/src/backend/fts/ftsmessagehandler.c
+++ b/src/backend/fts/ftsmessagehandler.c
@@ -313,14 +313,6 @@ HandleFtsWalRepSyncRepOff(void)
 		false, /* RequestRetry */
 	};
 
-	if (FaultInjector_InjectFaultIfSet("fts_probe",
-										   DDLNotSpecified,
-										   "" /* databaseName */,
-										   "" /* tableName */) == FaultInjectorTypeSkip)
-	{
-		SendFtsResponse(&response, FTS_MSG_SYNCREP_OFF);
-	}
-
 	ereport(LOG,
 			(errmsg("turning off synchronous wal replication due to FTS request")));
 	UnsetSyncStandbysDefined();
@@ -393,14 +385,6 @@ HandleFtsWalRepPromote(void)
 	ereport(LOG,
 			(errmsg("promoting mirror to primary due to FTS request")));
 
-	if (FaultInjector_InjectFaultIfSet("fts_probe",
-										   DDLNotSpecified,
-										   "" /* databaseName */,
-										   "" /* tableName */) == FaultInjectorTypeSkip)
-	{
-		goto skip_promote;
-	}
-	
 #ifndef USE_INTERNAL_FTS
 	if (IS_QUERY_DISPATCHER()) {
 		bool succ;
@@ -448,7 +432,9 @@ HandleFtsWalRepPromote(void)
 			 " DBState = %d", state);
 	}
 
+#ifndef USE_INTERNAL_FTS
 skip_promote:
+#endif
 	SendFtsResponse(&response, FTS_MSG_PROMOTE);
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org