mirror of https://github.com/citusdata/citus.git
sync objects without coordinated tx
parent
ccf955fb52
commit
b5f39898a0
|
@ -1221,6 +1221,7 @@ ActivateNodeList(List *nodeList)
|
||||||
List *existingMetadataNodeList =
|
List *existingMetadataNodeList =
|
||||||
TargetWorkerSetNodeList(NON_COORDINATOR_METADATA_NODES,
|
TargetWorkerSetNodeList(NON_COORDINATOR_METADATA_NODES,
|
||||||
RowShareLock);
|
RowShareLock);
|
||||||
|
|
||||||
/*ErrorIfAnyMetadataNodeOutOfSync(existingMetadataNodeList); */
|
/*ErrorIfAnyMetadataNodeOutOfSync(existingMetadataNodeList); */
|
||||||
|
|
||||||
node = NULL;
|
node = NULL;
|
||||||
|
@ -2274,7 +2275,7 @@ AddNodeMetadata(char *nodeName, int32 nodePort,
|
||||||
{
|
{
|
||||||
/* send the delete command to all primary nodes with metadata */
|
/* send the delete command to all primary nodes with metadata */
|
||||||
char *nodeDeleteCommand = NodeDeleteCommand(workerNode->nodeId);
|
char *nodeDeleteCommand = NodeDeleteCommand(workerNode->nodeId);
|
||||||
SendCommandToWorkersWithMetadata(nodeDeleteCommand);
|
SendBareCommandListToMetadataWorkers(list_make1(nodeDeleteCommand));
|
||||||
|
|
||||||
/* finally prepare the insert command and send it to all primary nodes */
|
/* finally prepare the insert command and send it to all primary nodes */
|
||||||
uint32 primariesWithMetadata = CountPrimariesWithMetadata();
|
uint32 primariesWithMetadata = CountPrimariesWithMetadata();
|
||||||
|
@ -2283,7 +2284,7 @@ AddNodeMetadata(char *nodeName, int32 nodePort,
|
||||||
List *workerNodeList = list_make1(workerNode);
|
List *workerNodeList = list_make1(workerNode);
|
||||||
char *nodeInsertCommand = NodeListInsertCommand(workerNodeList);
|
char *nodeInsertCommand = NodeListInsertCommand(workerNodeList);
|
||||||
|
|
||||||
SendCommandToWorkersWithMetadata(nodeInsertCommand);
|
SendBareCommandListToMetadataWorkers(list_make1(nodeInsertCommand));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue