Fix a warning message is never output in watchdog.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 15 Apr 2020 04:27:18 +0000 (13:27 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 15 Apr 2020 04:27:18 +0000 (13:27 +0900)
Patch provided by sherlockcpp.
Discussion: https://www.pgpool.net/pipermail/pgpool-general/2020-April/007014.html

src/watchdog/wd_internal_commands.c

index e394023c0529bf1fd96143dc9781823a31a56a20..e87d467d8612997bd9692afe67f71c038dfd31c7 100644 (file)
@@ -6,7 +6,7 @@
  * pgpool: a language independent connection pool server for PostgreSQL
  * written by Tatsuo Ishii
  *
- * Copyright (c) 2003-2019     PgPool Global Development Group
+ * Copyright (c) 2003-2020     PgPool Global Development Group
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
@@ -304,9 +304,6 @@ wd_send_failover_func_status_command(bool start)
 
 static WDFailoverCMDResults wd_get_failover_result_from_data(WDIPCCmdResult * result, unsigned int *wd_failover_id)
 {
-       if (result == NULL)
-               return FAILOVER_RES_ERROR;
-
        if (result == NULL)
        {
                ereport(WARNING,