mirror of https://github.com/citusdata/citus.git
Remove unused SendCommandToWorker
parent
f5fbf1e621
commit
c8c308c109
|
@ -32,29 +32,6 @@
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* SendCommandToWorker sends a command to a particular worker as part of the
|
|
||||||
* 2PC.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
SendCommandToWorker(char *nodeName, int32 nodePort, char *command)
|
|
||||||
{
|
|
||||||
MultiConnection *transactionConnection = NULL;
|
|
||||||
char *nodeUser = CitusExtensionOwnerName();
|
|
||||||
int connectionFlags = 0;
|
|
||||||
|
|
||||||
BeginOrContinueCoordinatedTransaction();
|
|
||||||
CoordinatedTransactionUse2PC();
|
|
||||||
|
|
||||||
transactionConnection = GetNodeUserDatabaseConnection(connectionFlags, nodeName,
|
|
||||||
nodePort, nodeUser, NULL);
|
|
||||||
|
|
||||||
MarkRemoteTransactionCritical(transactionConnection);
|
|
||||||
RemoteTransactionBeginIfNecessary(transactionConnection);
|
|
||||||
ExecuteCriticalRemoteCommand(transactionConnection, command);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SendCommandToWorkers sends a command to all workers in
|
* SendCommandToWorkers sends a command to all workers in
|
||||||
* parallel. Commands are committed on the workers when the local
|
* parallel. Commands are committed on the workers when the local
|
||||||
|
|
|
@ -28,7 +28,6 @@ typedef enum TargetWorkerSet
|
||||||
|
|
||||||
/* Functions declarations for worker transactions */
|
/* Functions declarations for worker transactions */
|
||||||
extern List * GetWorkerTransactions(void);
|
extern List * GetWorkerTransactions(void);
|
||||||
extern void SendCommandToWorker(char *nodeName, int32 nodePort, char *command);
|
|
||||||
extern void SendCommandToWorkers(TargetWorkerSet targetWorkerSet, char *command);
|
extern void SendCommandToWorkers(TargetWorkerSet targetWorkerSet, char *command);
|
||||||
extern void SendCommandToWorkersParams(TargetWorkerSet targetWorkerSet, char *command,
|
extern void SendCommandToWorkersParams(TargetWorkerSet targetWorkerSet, char *command,
|
||||||
int parameterCount, const Oid *parameterTypes,
|
int parameterCount, const Oid *parameterTypes,
|
||||||
|
|
Loading…
Reference in New Issue