Esempio n. 1
0
/* --------------------------------

 * 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);
}
Esempio n. 2
0
File: pcp.c Progetto: 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);
}
Esempio n. 3
0
/* --------------------------------
 * 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);
}
Esempio n. 4
0
File: pcp.c Progetto: 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);
}