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);
|
||||
|
||||
/* remove the shard from the node */
|
||||
MultiConnection *connection = GetLocalConnectionForSubtransactionAsUser(
|
||||
CitusExtensionOwnerName());
|
||||
int connectionFlags = OUTSIDE_TRANSACTION;
|
||||
MultiConnection *workerConnection = GetNodeUserDatabaseConnection(connectionFlags,
|
||||
nodeName, nodePort,
|
||||
CurrentUserName(),
|
||||
NULL);
|
||||
workerConnection->forceCloseAtTransactionEnd = true;
|
||||
|
||||
bool success = SendOptionalCommandListToWorkerOutsideTransactionWithConnection(
|
||||
connection,
|
||||
workerConnection,
|
||||
dropCommandList);
|
||||
|
||||
return success;
|
||||
|
|
Loading…
Reference in New Issue