mirror of https://github.com/citusdata/citus.git
Indentation cleanup
Uncrustify 0.65 appears to have changed some defaults, resulting in breakages for those of us who have already upgraded; Travis still uses Uncrustify 0.64, but these changes work with both versions (assuming appropriately updated config), so this should permit use of either version for the time being.pull/1462/head
parent
d896fe7995
commit
9018e698ec
|
@ -540,27 +540,27 @@ BuildRemoteExplainQuery(char *queryString, ExplainState *es)
|
|||
case EXPLAIN_FORMAT_XML:
|
||||
{
|
||||
formatStr = "XML";
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case EXPLAIN_FORMAT_JSON:
|
||||
{
|
||||
formatStr = "JSON";
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case EXPLAIN_FORMAT_YAML:
|
||||
{
|
||||
formatStr = "YAML";
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
formatStr = "TEXT";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
appendStringInfo(explainQuery,
|
||||
"EXPLAIN (ANALYZE %s, VERBOSE %s, "
|
||||
|
|
|
@ -632,8 +632,8 @@ AddPartitionKeyRestrictionToInstance(ClauseWalkerContext *context, OpExpr *opCla
|
|||
prune->lessConsts = constantClause;
|
||||
}
|
||||
matchedOp = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case BTLessEqualStrategyNumber:
|
||||
{
|
||||
|
@ -645,8 +645,8 @@ AddPartitionKeyRestrictionToInstance(ClauseWalkerContext *context, OpExpr *opCla
|
|||
prune->lessEqualConsts = constantClause;
|
||||
}
|
||||
matchedOp = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case BTEqualStrategyNumber:
|
||||
{
|
||||
|
@ -662,8 +662,8 @@ AddPartitionKeyRestrictionToInstance(ClauseWalkerContext *context, OpExpr *opCla
|
|||
prune->evaluatesToFalse = true;
|
||||
}
|
||||
matchedOp = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case BTGreaterEqualStrategyNumber:
|
||||
{
|
||||
|
@ -676,8 +676,8 @@ AddPartitionKeyRestrictionToInstance(ClauseWalkerContext *context, OpExpr *opCla
|
|||
prune->greaterEqualConsts = constantClause;
|
||||
}
|
||||
matchedOp = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case BTGreaterStrategyNumber:
|
||||
{
|
||||
|
@ -689,15 +689,15 @@ AddPartitionKeyRestrictionToInstance(ClauseWalkerContext *context, OpExpr *opCla
|
|||
prune->greaterConsts = constantClause;
|
||||
}
|
||||
matchedOp = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case ROWCOMPARE_NE:
|
||||
{
|
||||
/* TODO: could add support for this, if we feel like it */
|
||||
matchedOp = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
Assert(false);
|
||||
|
|
|
@ -168,8 +168,8 @@ CoordinatedTransactionCallback(XactEvent event, void *arg)
|
|||
XactModificationLevel = XACT_MODIFICATION_NONE;
|
||||
dlist_init(&InProgressTransactions);
|
||||
CoordinatedTransactionUses2PC = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case XACT_EVENT_ABORT:
|
||||
{
|
||||
|
@ -204,14 +204,15 @@ CoordinatedTransactionCallback(XactEvent event, void *arg)
|
|||
dlist_init(&InProgressTransactions);
|
||||
CoordinatedTransactionUses2PC = false;
|
||||
subXactAbortAttempted = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case XACT_EVENT_PARALLEL_COMMIT:
|
||||
case XACT_EVENT_PARALLEL_ABORT:
|
||||
case XACT_EVENT_PREPARE:
|
||||
{ }
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
case XACT_EVENT_PRE_COMMIT:
|
||||
{
|
||||
|
@ -270,8 +271,8 @@ CoordinatedTransactionCallback(XactEvent event, void *arg)
|
|||
* committed. This handles failure at COMMIT/PREPARE time.
|
||||
*/
|
||||
PostCommitMarkFailedShardPlacements(CoordinatedTransactionUses2PC);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case XACT_EVENT_PARALLEL_PRE_COMMIT:
|
||||
case XACT_EVENT_PRE_PREPARE:
|
||||
|
@ -282,9 +283,9 @@ CoordinatedTransactionCallback(XactEvent event, void *arg)
|
|||
errmsg("cannot use 2PC in transactions involving "
|
||||
"multiple servers")));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue