ソースを参照

quorumtool: fix return code

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Fabio M. Di Nitto 14 年 前
コミット
083aa9d713
1 ファイル変更1 行追加4 行削除
  1. 1 4
      tools/corosync-quorumtool.c

+ 1 - 4
tools/corosync-quorumtool.c

@@ -434,10 +434,7 @@ static int monitor_status(nodeid_format_t nodeid_format, name_format_t name_form
 	}
 
 quorum_err:
-	if (err != CS_OK) {
-		return -1;
-	}
-	return g_quorate;
+	return -1;
 }
 
 static int show_nodes(nodeid_format_t nodeid_format, name_format_t name_format)