reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -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);

View File

@ -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