blob: c4e209977e1261d24e266655de94ff6da3792641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*-------------------------------------------------------------------------
*
* gtm_util.h
*
* GTM utility module of Postgres-XC configuration and operation tool.
*
* Copyright (c) 2013 Postgres-XC Development Group
*
*-------------------------------------------------------------------------
*/
#ifndef GTM_UTIL_H
#define GTM_UTIL_H
#include "gtm/gtm_client.h"
#include "gtm/libpq-fe.h"
extern int unregisterFromGtm(char *line);
extern int process_unregister_command(GTM_PGXCNodeType type, char *nodename);
#define unregister_gtm_proxy(name) do{process_unregister_command(GTM_NODE_GTM_PROXY, name);}while(0)
#define unregister_coordinator(name) do{process_unregister_command(GTM_NODE_COORDINATOR, name);}while(0)
#define unregister_datanode(name) do{process_unregister_command(GTM_NODE_DATANODE, name);}while(0)
#endif /* GTM_UTIL_H */
|