mirror of https://github.com/citusdata/citus.git
Fix connection bug
parent
33a2578342
commit
96c32d571c
|
@ -756,10 +756,15 @@ TryDropShardOutsideTransaction(OperationId operationId, char *qualifiedTableName
|
||||||
dropQuery->data);
|
dropQuery->data);
|
||||||
|
|
||||||
/* remove the shard from the node */
|
/* remove the shard from the node */
|
||||||
MultiConnection *connection = GetLocalConnectionForSubtransactionAsUser(
|
int connectionFlags = OUTSIDE_TRANSACTION;
|
||||||
CitusExtensionOwnerName());
|
MultiConnection *workerConnection = GetNodeUserDatabaseConnection(connectionFlags,
|
||||||
|
nodeName, nodePort,
|
||||||
|
CurrentUserName(),
|
||||||
|
NULL);
|
||||||
|
workerConnection->forceCloseAtTransactionEnd = true;
|
||||||
|
|
||||||
bool success = SendOptionalCommandListToWorkerOutsideTransactionWithConnection(
|
bool success = SendOptionalCommandListToWorkerOutsideTransactionWithConnection(
|
||||||
connection,
|
workerConnection,
|
||||||
dropCommandList);
|
dropCommandList);
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
|
|
Loading…
Reference in New Issue