mirror of https://github.com/citusdata/citus.git
Fixes compile error
parent
9056a9db91
commit
93c140a913
|
@ -56,13 +56,6 @@
|
||||||
#include "distributed/version_compat.h"
|
#include "distributed/version_compat.h"
|
||||||
#include "distributed/worker_transaction.h"
|
#include "distributed/worker_transaction.h"
|
||||||
|
|
||||||
typedef struct DistributedRolesInGrantRoleStmt
|
|
||||||
{
|
|
||||||
List *distributedGrantees;
|
|
||||||
List *distributedGrantedRoles;
|
|
||||||
RoleSpec *grantor;
|
|
||||||
bool isGrantRoleStmtValid;
|
|
||||||
} DistributedRolesInGrantRoleStmt;
|
|
||||||
|
|
||||||
static const char * ExtractEncryptedPassword(Oid roleOid);
|
static const char * ExtractEncryptedPassword(Oid roleOid);
|
||||||
static const char * CreateAlterRoleIfExistsCommand(AlterRoleStmt *stmt);
|
static const char * CreateAlterRoleIfExistsCommand(AlterRoleStmt *stmt);
|
||||||
|
@ -1440,8 +1433,7 @@ ExtractDistributedRolesInGrantRoleStmt(GrantRoleStmt *stmt)
|
||||||
bool grantorMissingOk = false;
|
bool grantorMissingOk = false;
|
||||||
bool isGrantorDefined = distributedRolesInGrantRoleStmt->grantor != NULL &&
|
bool isGrantorDefined = distributedRolesInGrantRoleStmt->grantor != NULL &&
|
||||||
get_rolespec_oid(distributedRolesInGrantRoleStmt->grantor,
|
get_rolespec_oid(distributedRolesInGrantRoleStmt->grantor,
|
||||||
grantorMissingOk) !=
|
grantorMissingOk) != InvalidOid;
|
||||||
InvalidOid;
|
|
||||||
bool isGrantorDistributed = IsAnyObjectDistributed(RoleSpecToObjectAddress(
|
bool isGrantorDistributed = IsAnyObjectDistributed(RoleSpecToObjectAddress(
|
||||||
distributedRolesInGrantRoleStmt
|
distributedRolesInGrantRoleStmt
|
||||||
->grantor, grantorMissingOk));
|
->grantor, grantorMissingOk));
|
||||||
|
|
|
@ -170,6 +170,14 @@ typedef enum TenantOperation
|
||||||
TENANT_SET_SCHEMA,
|
TENANT_SET_SCHEMA,
|
||||||
} TenantOperation;
|
} TenantOperation;
|
||||||
|
|
||||||
|
typedef struct DistributedRolesInGrantRoleStmt
|
||||||
|
{
|
||||||
|
List *distributedGrantees;
|
||||||
|
List *distributedGrantedRoles;
|
||||||
|
RoleSpec *grantor;
|
||||||
|
bool isGrantRoleStmtValid;
|
||||||
|
} DistributedRolesInGrantRoleStmt;
|
||||||
|
|
||||||
#define TOTAL_TENANT_OPERATION 5
|
#define TOTAL_TENANT_OPERATION 5
|
||||||
extern const char *TenantOperationNames[TOTAL_TENANT_OPERATION];
|
extern const char *TenantOperationNames[TOTAL_TENANT_OPERATION];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue