mirror of https://github.com/citusdata/citus.git
extract cluster DistributeObjectOps
parent
cc86236fa1
commit
f497a7a994
|
@ -14,9 +14,18 @@
|
||||||
#include "distributed/commands.h"
|
#include "distributed/commands.h"
|
||||||
#include "distributed/metadata_cache.h"
|
#include "distributed/metadata_cache.h"
|
||||||
|
|
||||||
|
static List * PreprocessClusterStmt(Node *node, const char *clusterCommand);
|
||||||
|
static DistributeObjectOps Any_Cluster = {
|
||||||
|
.deparse = NULL,
|
||||||
|
.qualify = NULL,
|
||||||
|
.preprocess = PreprocessClusterStmt,
|
||||||
|
.postprocess = NULL,
|
||||||
|
.address = NULL,
|
||||||
|
};
|
||||||
|
REGISTER_DISTRIBUTED_OPERATION(ClusterStmt, Any_Cluster);
|
||||||
|
|
||||||
/* placeholder for PreprocessClusterStmt */
|
/* placeholder for PreprocessClusterStmt */
|
||||||
List *
|
static List *
|
||||||
PreprocessClusterStmt(Node *node, const char *clusterCommand)
|
PreprocessClusterStmt(Node *node, const char *clusterCommand)
|
||||||
{
|
{
|
||||||
ClusterStmt *clusterStmt = castNode(ClusterStmt, node);
|
ClusterStmt *clusterStmt = castNode(ClusterStmt, node);
|
||||||
|
|
|
@ -23,15 +23,6 @@ static DistributeObjectOps NoDistributeOps = {
|
||||||
.address = NULL,
|
.address = NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static DistributeObjectOps Any_Cluster = {
|
|
||||||
.deparse = NULL,
|
|
||||||
.qualify = NULL,
|
|
||||||
.preprocess = PreprocessClusterStmt,
|
|
||||||
.postprocess = NULL,
|
|
||||||
.address = NULL,
|
|
||||||
};
|
|
||||||
REGISTER_DISTRIBUTED_OPERATION(ClusterStmt, Any_Cluster);
|
|
||||||
|
|
||||||
static DistributeObjectOps Any_Index = {
|
static DistributeObjectOps Any_Index = {
|
||||||
.deparse = NULL,
|
.deparse = NULL,
|
||||||
.qualify = NULL,
|
.qualify = NULL,
|
||||||
|
|
|
@ -121,9 +121,6 @@ typedef struct DistributedObjectOpsContainer
|
||||||
|
|
||||||
const DistributeObjectOps * GetDistributeObjectOps(Node *node);
|
const DistributeObjectOps * GetDistributeObjectOps(Node *node);
|
||||||
|
|
||||||
/* cluster.c - forward declarations */
|
|
||||||
extern List * PreprocessClusterStmt(Node *node, const char *clusterCommand);
|
|
||||||
|
|
||||||
|
|
||||||
/* call.c */
|
/* call.c */
|
||||||
extern bool CallDistributedProcedureRemotely(CallStmt *callStmt, DestReceiver *dest);
|
extern bool CallDistributedProcedureRemotely(CallStmt *callStmt, DestReceiver *dest);
|
||||||
|
|
Loading…
Reference in New Issue