sync objects without coordinated tx

metadata_sync_final
Onder Kalaci 2022-12-02 08:35:15 +01:00
parent ccf955fb52
commit b5f39898a0
1 changed files with 3 additions and 2 deletions

View File

@ -1221,6 +1221,7 @@ ActivateNodeList(List *nodeList)
List *existingMetadataNodeList =
TargetWorkerSetNodeList(NON_COORDINATOR_METADATA_NODES,
RowShareLock);
/*ErrorIfAnyMetadataNodeOutOfSync(existingMetadataNodeList); */
node = NULL;
@ -2274,7 +2275,7 @@ AddNodeMetadata(char *nodeName, int32 nodePort,
{
/* send the delete command to all primary nodes with metadata */
char *nodeDeleteCommand = NodeDeleteCommand(workerNode->nodeId);
SendCommandToWorkersWithMetadata(nodeDeleteCommand);
SendBareCommandListToMetadataWorkers(list_make1(nodeDeleteCommand));
/* finally prepare the insert command and send it to all primary nodes */
uint32 primariesWithMetadata = CountPrimariesWithMetadata();
@ -2283,7 +2284,7 @@ AddNodeMetadata(char *nodeName, int32 nodePort,
List *workerNodeList = list_make1(workerNode);
char *nodeInsertCommand = NodeListInsertCommand(workerNodeList);
SendCommandToWorkersWithMetadata(nodeInsertCommand);
SendBareCommandListToMetadataWorkers(list_make1(nodeInsertCommand));
}
}