Merge pull request #3327 from citusdata/fix_reindent

Fix reindent version inconsistencies.
pull/3316/head
Hadi Moshayedi 2019-12-20 08:38:15 -08:00 committed by GitHub
commit bb6ba89708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 7 deletions

View File

@ -183,8 +183,8 @@ CitusModifyBeginScan(CustomScanState *node, EState *estate, int eflags)
* executions of a prepared statement. Instead we create a deep copy that we only * executions of a prepared statement. Instead we create a deep copy that we only
* use for the current execution. * use for the current execution.
*/ */
DistributedPlan *distributedPlan = scanState->distributedPlan = copyObject( DistributedPlan *distributedPlan = copyObject(scanState->distributedPlan);
scanState->distributedPlan); scanState->distributedPlan = distributedPlan;
Job *workerJob = distributedPlan->workerJob; Job *workerJob = distributedPlan->workerJob;
Query *jobQuery = workerJob->jobQuery; Query *jobQuery = workerJob->jobQuery;

View File

@ -118,7 +118,10 @@ FakeGetForeignPlan(PlannerInfo *root, RelOptInfo *baserel, Oid foreigntableid,
* FakeBeginForeignScan begins the fake plan (i.e. does nothing). * FakeBeginForeignScan begins the fake plan (i.e. does nothing).
*/ */
static void static void
FakeBeginForeignScan(ForeignScanState *node, int eflags) { } FakeBeginForeignScan(ForeignScanState *node, int eflags)
{
/* this comment is for indentation consistency */
}
/* /*
@ -138,11 +141,17 @@ FakeIterateForeignScan(ForeignScanState *node)
* FakeReScanForeignScan restarts the fake plan (i.e. does nothing). * FakeReScanForeignScan restarts the fake plan (i.e. does nothing).
*/ */
static void static void
FakeReScanForeignScan(ForeignScanState *node) { } FakeReScanForeignScan(ForeignScanState *node)
{
/* this comment is for indentation consistency */
}
/* /*
* FakeEndForeignScan ends the fake plan (i.e. does nothing). * FakeEndForeignScan ends the fake plan (i.e. does nothing).
*/ */
static void static void
FakeEndForeignScan(ForeignScanState *node) { } FakeEndForeignScan(ForeignScanState *node)
{
/* this comment is for indentation consistency */
}

View File

@ -33,8 +33,8 @@ CitusSetTag(Node *node, int tag)
#define DECLARE_FROM_AND_NEW_NODE(nodeTypeName) \ #define DECLARE_FROM_AND_NEW_NODE(nodeTypeName) \
nodeTypeName *newnode = (nodeTypeName *) \ nodeTypeName *newnode = \
CitusSetTag((Node *) target_node, T_ ## nodeTypeName); \ (nodeTypeName *) CitusSetTag((Node *) target_node, T_ ## nodeTypeName); \
nodeTypeName *from = (nodeTypeName *) source_node nodeTypeName *from = (nodeTypeName *) source_node
/* Copy a simple scalar field (int, float, bool, enum, etc) */ /* Copy a simple scalar field (int, float, bool, enum, etc) */