mirror of https://github.com/citusdata/citus.git
DROP TABLE becomes idempotent for metadata sync - t2
parent
a41953d5bb
commit
5c0a647661
|
@ -101,7 +101,7 @@ static void InsertNodeRow(int nodeid, char *nodename, int32 nodeport, NodeMetada
|
||||||
*nodeMetadata);
|
*nodeMetadata);
|
||||||
static void DeleteNodeRow(char *nodename, int32 nodeport);
|
static void DeleteNodeRow(char *nodename, int32 nodeport);
|
||||||
static void SyncDistributedObjectsToNodeList(List *workerNodeList);
|
static void SyncDistributedObjectsToNodeList(List *workerNodeList);
|
||||||
static void UpdateLocalGroupIdOnNode(WorkerNode *workerNode);
|
//static void UpdateLocalGroupIdOnNode(WorkerNode *workerNode);
|
||||||
static void SyncPgDistTableMetadataToNodeList(List *nodeList);
|
static void SyncPgDistTableMetadataToNodeList(List *nodeList);
|
||||||
static List * InterTableRelationshipCommandList();
|
static List * InterTableRelationshipCommandList();
|
||||||
static void BlockDistributedQueriesOnMetadataNodes(void);
|
static void BlockDistributedQueriesOnMetadataNodes(void);
|
||||||
|
@ -875,21 +875,21 @@ SyncDistributedObjectsToNodeList(List *workerNodeList)
|
||||||
/*
|
/*
|
||||||
* UpdateLocalGroupIdOnNode updates local group id on node.
|
* UpdateLocalGroupIdOnNode updates local group id on node.
|
||||||
*/
|
*/
|
||||||
static void
|
//static void
|
||||||
UpdateLocalGroupIdOnNode(WorkerNode *workerNode)
|
//UpdateLocalGroupIdOnNode(WorkerNode *workerNode)
|
||||||
{
|
//{
|
||||||
if (NodeIsPrimary(workerNode) && !NodeIsCoordinator(workerNode))
|
// if (NodeIsPrimary(workerNode) && !NodeIsCoordinator(workerNode))
|
||||||
{
|
// {
|
||||||
List *commandList = list_make1(LocalGroupIdUpdateCommand(workerNode->groupId));
|
// List *commandList = list_make1(LocalGroupIdUpdateCommand(workerNode->groupId));
|
||||||
|
//
|
||||||
/* send commands to new workers, the current user should be a superuser */
|
// /* send commands to new workers, the current user should be a superuser */
|
||||||
Assert(superuser());
|
// Assert(superuser());
|
||||||
SendMetadataCommandListToWorkerListInCoordinatedTransaction(
|
// SendMetadataCommandListToWorkerListInCoordinatedTransaction(
|
||||||
list_make1(workerNode),
|
// list_make1(workerNode),
|
||||||
CurrentUserName(),
|
// CurrentUserName(),
|
||||||
commandList);
|
// commandList);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue