reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -20,7 +20,7 @@ namespace sql {
|
||||
|
||||
class ObOraSysChecker {
|
||||
|
||||
private:
|
||||
private:
|
||||
static int map_obj_priv_array_to_sys_priv_array(const ObIArray<share::ObRawObjPriv>& raw_obj_priv_array,
|
||||
const uint64_t obj_id, const uint64_t obj_type, ObIArray<share::ObRawPriv>& sys_priv_array);
|
||||
|
||||
@ -171,7 +171,7 @@ class ObOraSysChecker {
|
||||
|
||||
static int build_related_plist(uint64_t obj_type, share::ObRawPriv& sys_priv, share::ObRawPrivArray& plist);
|
||||
|
||||
public:
|
||||
public:
|
||||
static bool is_super_user(const uint64_t user_id);
|
||||
|
||||
static bool is_owner_user(const uint64_t user_id, const uint64_t owner_user_id);
|
||||
|
||||
@ -27,7 +27,7 @@ typedef int (*ObGetStmtOraNeedPrivsFunc)(const share::schema::ObSessionPrivInfo&
|
||||
common::ObIArray<share::schema::ObOraNeedPriv>& need_privs);
|
||||
|
||||
class ObPrivilegeCheck {
|
||||
public:
|
||||
public:
|
||||
/// Check privilege
|
||||
///@param ctx[in] sql ctx
|
||||
///@param basic_stmt[in] stmt
|
||||
@ -60,7 +60,7 @@ class ObPrivilegeCheck {
|
||||
static int check_password_expired_on_connection(
|
||||
uint64_t user_id, share::schema::ObSchemaGetterGuard& schema_guard, sql::ObSQLSessionInfo& session);
|
||||
|
||||
private:
|
||||
private:
|
||||
/// Get all privilege info needed by a stmt, including sub-queries.
|
||||
/// called by generate_physical_plan
|
||||
///@param ctx[in] sql ctx
|
||||
|
||||
Reference in New Issue
Block a user