예제 #1
0
파일: pcp.c 프로젝트: Randalthor80/pgpool2
/* --------------------------------

 * and promote a node given by the argument as new pgpool's master
 *
 * return 0 on success, -1 otherwise
 * --------------------------------
 */
int
pcp_promote_node_gracefully(int nid)
{
  return _pcp_promote_node(nid, TRUE);
}
예제 #2
0
파일: pcp.c 프로젝트: ysd001/pgpool2
/* --------------------------------

 * and promote a node given by the argument as new pgpool's master
 *
 * return 0 on success, -1 otherwise
 * --------------------------------
 */
PCPResultInfo *
pcp_promote_node_gracefully(PCPConnInfo* pcpConn,int nid)
{
  return _pcp_promote_node(pcpConn,nid, TRUE);
}
예제 #3
0
파일: pcp.c 프로젝트: Randalthor80/pgpool2
/* --------------------------------
 * pcp_promote_node - promote a node given by the argument as new pgpool's master
 *
 * return 0 on success, -1 otherwise
 * --------------------------------
 */
int
pcp_promote_node(int nid)
{
  return _pcp_promote_node(nid, FALSE);
}
예제 #4
0
파일: pcp.c 프로젝트: ysd001/pgpool2
/* --------------------------------
 * pcp_promote_node - promote a node given by the argument as new pgpool's master
 *
 * return 0 on success, -1 otherwise
 * --------------------------------
 */
PCPResultInfo *
pcp_promote_node(PCPConnInfo* pcpConn,int nid)
{
  return _pcp_promote_node(pcpConn,nid, FALSE);
}