286286do_monitor_command (char * line )
287287{
288288 char * token ;
289- int rc = 0 ;
290289
291290 if (!GetToken ())
292291 {
@@ -309,10 +308,10 @@ do_monitor_command(char *line)
309308 if (isVarYes (VAR_gtmSlave ))
310309 monitor_gtm_slave ();
311310 else
312- elog (ERROR , "ERROR: gtm slave is not configured.\n" ), rc = -1 ;
311+ elog (ERROR , "ERROR: gtm slave is not configured.\n" );
313312 }
314313 else
315- elog (ERROR , "Invalid monitor gtm command option.\n" ), rc = -1 ;
314+ elog (ERROR , "Invalid monitor gtm command option.\n" );
316315 return ;
317316 }
318317 else if (TestToken ("gtm_proxy" ))
@@ -356,7 +355,7 @@ do_monitor_command(char *line)
356355 else if (TestToken ("slave" ))
357356 {
358357 if (!isVarYes (VAR_coordSlave ))
359- elog (ERROR , "ERROR: coordinator slave is not configured.\n" ), rc = -1 ;
358+ elog (ERROR , "ERROR: coordinator slave is not configured.\n" );
360359 else
361360 if (!GetToken () || TestToken ("all" ))
362361 monitor_coordinator_slave (aval (VAR_coordNames ));
@@ -405,7 +404,7 @@ do_monitor_command(char *line)
405404 else if (TestToken ("slave" ))
406405 {
407406 if (!isVarYes (VAR_coordSlave ))
408- elog (ERROR , "ERROR: datanode slave is not configured.\n" ), rc = -1 ;
407+ elog (ERROR , "ERROR: datanode slave is not configured.\n" );
409408 else
410409 if (!GetToken () || TestToken ("all" ))
411410 monitor_datanode_slave (aval (VAR_coordNames ));
0 commit comments