mirror of https://github.com/citusdata/citus.git
Set application_name to citus_rebalancer when copying reference tables
parent
dbfdaca0f0
commit
9dc6273b88
|
@ -244,6 +244,16 @@ EnsureReferenceTablesExistOnAllNodesExtended(char transferMode)
|
||||||
CopyShardPlacementToWorkerNodeQuery(sourceShardPlacement,
|
CopyShardPlacementToWorkerNodeQuery(sourceShardPlacement,
|
||||||
newWorkerNode,
|
newWorkerNode,
|
||||||
transferMode);
|
transferMode);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The placement copy command uses distributed execution to create
|
||||||
|
* indexes. This is allowed when indicating that the backend is a
|
||||||
|
* rebalancer backend.
|
||||||
|
*/
|
||||||
|
ExecuteCriticalRemoteCommand(connection,
|
||||||
|
"SET LOCAL application_name TO "
|
||||||
|
CITUS_REBALANCER_NAME);
|
||||||
|
|
||||||
ExecuteCriticalRemoteCommand(connection, placementCopyCommand->data);
|
ExecuteCriticalRemoteCommand(connection, placementCopyCommand->data);
|
||||||
RemoteTransactionCommit(connection);
|
RemoteTransactionCommit(connection);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue