mirror of https://github.com/citusdata/citus.git
style improvemen
parent
698dae9ac8
commit
2e1b066463
|
@ -57,7 +57,7 @@ static void StartConnectionEstablishment(MultiConnection *connectionn,
|
|||
ConnectionHashKey *key);
|
||||
static MultiConnection * FindAvailableConnection(dlist_head *connections, uint32 flags);
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
static void EnsureSingleMultipleMetadataConnectionExists(dlist_head *connections);
|
||||
static void EnsureSingleMetadataConnectionExists(dlist_head *connections);
|
||||
#endif
|
||||
static void FreeConnParamsHashEntryFields(ConnParamsHashEntry *entry);
|
||||
static void AfterXactHostConnectionHandling(ConnectionHashEntry *entry, bool isCommit);
|
||||
|
@ -483,7 +483,7 @@ FindAvailableConnection(dlist_head *connections, uint32 flags)
|
|||
* checks.
|
||||
*/
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
EnsureSingleMultipleMetadataConnectionExists(connections);
|
||||
EnsureSingleMetadataConnectionExists(connections);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -516,7 +516,7 @@ FindAvailableConnection(dlist_head *connections, uint32 flags)
|
|||
metadataConnection->useForMetadataOperations = true;
|
||||
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
EnsureSingleMultipleMetadataConnectionExists(connections);
|
||||
EnsureSingleMetadataConnectionExists(connections);
|
||||
#endif
|
||||
|
||||
return metadataConnection;
|
||||
|
@ -529,11 +529,11 @@ FindAvailableConnection(dlist_head *connections, uint32 flags)
|
|||
#ifdef USE_ASSERT_CHECKING
|
||||
|
||||
/*
|
||||
* EnsureSingleMultipleMetadataConnectionExists throws an error if the
|
||||
* EnsureSingleMetadataConnectionExists throws an error if the
|
||||
* input connection dlist contains more than one metadata connections.
|
||||
*/
|
||||
static void
|
||||
EnsureSingleMultipleMetadataConnectionExists(dlist_head *connections)
|
||||
EnsureSingleMetadataConnectionExists(dlist_head *connections)
|
||||
{
|
||||
bool foundMetadataConnection = false;
|
||||
dlist_iter iter;
|
||||
|
|
|
@ -63,7 +63,7 @@ enum MultiConnectionMode
|
|||
*
|
||||
* With this flag, we guarantee that there is a single metadata connection.
|
||||
* But note that this connection can be used for any other operation.
|
||||
* In other words, this connection is not only reserved for metadata
|
||||
* In other words, this connection is not exclusively reserved for metadata
|
||||
* operations.
|
||||
*/
|
||||
REQUIRE_METADATA_CONNECTION = 1 << 5,
|
||||
|
|
Loading…
Reference in New Issue