You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2024/04/30 04:25:08 UTC

(doris) branch branch-2.0 updated: [feature](variable) add read_only and super_read_only (#33795) (#34330)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 999b9cccc53 [feature](variable) add read_only and super_read_only (#33795) (#34330)
999b9cccc53 is described below

commit 999b9cccc53579db7315eb0615b11973d333bd77
Author: Mingyu Chen <mo...@163.com>
AuthorDate: Tue Apr 30 12:25:03 2024 +0800

    [feature](variable) add read_only and super_read_only (#33795) (#34330)
    
    bp #33795
---
 .../src/main/java/org/apache/doris/qe/GlobalVariable.java | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/GlobalVariable.java b/fe/fe-core/src/main/java/org/apache/doris/qe/GlobalVariable.java
index 1e6fff13829..8697c4d5683 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/GlobalVariable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/GlobalVariable.java
@@ -49,6 +49,9 @@ public final class GlobalVariable {
     public static final long VALIDATE_PASSWORD_POLICY_DISABLED = 0;
     public static final long VALIDATE_PASSWORD_POLICY_STRONG = 2;
 
+    public static final String READ_ONLY = "read_only";
+    public static final String SUPER_READ_ONLY = "super_read_only";
+
     @VariableMgr.VarAttr(name = VERSION_COMMENT, flag = VariableMgr.READ_ONLY)
     public static String versionComment = "Doris version "
             + Version.DORIS_BUILD_VERSION + "-" + Version.DORIS_BUILD_SHORT_HASH;
@@ -97,7 +100,17 @@ public final class GlobalVariable {
     @VariableMgr.VarAttr(name = VALIDATE_PASSWORD_POLICY, flag = VariableMgr.GLOBAL)
     public static long validatePasswordPolicy = 0;
 
-    // Don't allow to create instance.
+    @VariableMgr.VarAttr(name = READ_ONLY, flag = VariableMgr.GLOBAL,
+            description = {"仅用于兼容MySQL生态,暂无实际意义",
+                    "Only for compatibility with MySQL ecosystem, no practical meaning"})
+    public static boolean read_only = true;
+
+    @VariableMgr.VarAttr(name = SUPER_READ_ONLY, flag = VariableMgr.GLOBAL,
+            description = {"仅用于兼容MySQL生态,暂无实际意义",
+                    "Only for compatibility with MySQL ecosystem, no practical meaning"})
+    public static boolean super_read_only = true;
+
+    // Don't allow creating instance.
     private GlobalVariable() {
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org