From d80c4698342e49699b1301f208b0ae2537d83b9b Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 26 Jun 2024 05:07:09 +0000 Subject: [PATCH] placeholder for lock table privilege --- src/share/schema/ob_priv_mgr.cpp | 1 + src/share/schema/ob_priv_type.h | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/share/schema/ob_priv_mgr.cpp b/src/share/schema/ob_priv_mgr.cpp index d92ea84853..bba599259d 100644 --- a/src/share/schema/ob_priv_mgr.cpp +++ b/src/share/schema/ob_priv_mgr.cpp @@ -81,6 +81,7 @@ const char *ObPrivMgr::priv_names_[] = { "CREATE ROLE", "DROP ROLE", "TRIGGER", + "LOCK TABLES", // index 45 }; ObPrivMgr::ObPrivMgr() diff --git a/src/share/schema/ob_priv_type.h b/src/share/schema/ob_priv_type.h index 27d78fe1bc..9bdebdd9df 100644 --- a/src/share/schema/ob_priv_type.h +++ b/src/share/schema/ob_priv_type.h @@ -73,8 +73,9 @@ enum OB_PRIV_SHIFT OB_PRIV_CREATE_ROLE_SHIFT, OB_PRIV_DROP_ROLE_SHIFT, OB_PRIV_TRIGGER_SHIFT, + OB_PRIV_LOCK_TABLE_SHIFT = 45, OB_PRIV_MAX_SHIFT_PLUS_ONE, - OB_PRIV_MAX_SHIFT_LIMIT = 65 + OB_PRIV_MAX_SHIFT_LIMIT = 65 }; #define OB_PRIV_MAX_SHIFT (OB_PRIV_MAX_SHIFT_PLUS_ONE - 1) @@ -163,7 +164,8 @@ enum OB_PRIV_OTHERS_TYPE OB_PRIV_OTHERS_REFERENCES = (1LL << 6), OB_PRIV_OTHERS_CREATE_ROLE = (1LL << 7), OB_PRIV_OTHERS_DROP_ROLE = (1LL << 8), - OB_PRIV_OTHERS_TRIGGER = (1LL << 9) + OB_PRIV_OTHERS_TRIGGER = (1LL << 9), + OB_PRIV_OTHERS_LOCK_TABLE = (1LL << 10) }; #endif //ifndef OCEABASE_SHARE_SCHEMA_OB_PRIV_TYPE_H_