mirror of https://github.com/citusdata/citus.git
Merge pull request #3413 from citusdata/int_to_uint
Update shardPlacement->nodeId from `int` to `uint`pull/3410/head^2
commit
a227e34c41
|
@ -134,7 +134,7 @@ static HTAB *ConnectionPlacementHash;
|
|||
typedef struct ColocatedPlacementsHashKey
|
||||
{
|
||||
/* to identify host - database can't differ */
|
||||
int nodeId;
|
||||
uint32 nodeId;
|
||||
|
||||
/* colocation group, or invalid */
|
||||
uint32 colocationGroupId;
|
||||
|
|
|
@ -411,7 +411,7 @@ OutShardPlacement(OUTFUNC_ARGS)
|
|||
WRITE_INT_FIELD(groupId);
|
||||
WRITE_STRING_FIELD(nodeName);
|
||||
WRITE_UINT_FIELD(nodePort);
|
||||
WRITE_INT_FIELD(nodeId);
|
||||
WRITE_UINT_FIELD(nodeId);
|
||||
/* so we can deal with 0 */
|
||||
WRITE_INT_FIELD(partitionMethod);
|
||||
WRITE_UINT_FIELD(colocationGroupId);
|
||||
|
|
|
@ -321,7 +321,7 @@ ReadShardPlacement(READFUNC_ARGS)
|
|||
READ_INT_FIELD(groupId);
|
||||
READ_STRING_FIELD(nodeName);
|
||||
READ_UINT_FIELD(nodePort);
|
||||
READ_INT_FIELD(nodeId);
|
||||
READ_UINT_FIELD(nodeId);
|
||||
/* so we can deal with 0 */
|
||||
READ_INT_FIELD(partitionMethod);
|
||||
READ_UINT_FIELD(colocationGroupId);
|
||||
|
|
|
@ -81,7 +81,7 @@ typedef struct ShardPlacement
|
|||
/* the rest of the fields aren't from pg_dist_placement */
|
||||
char *nodeName;
|
||||
uint32 nodePort;
|
||||
int nodeId;
|
||||
uint32 nodeId;
|
||||
char partitionMethod;
|
||||
uint32 colocationGroupId;
|
||||
uint32 representativeValue;
|
||||
|
|
Loading…
Reference in New Issue