yiguolei commented on a change in pull request #8246:
URL: https://github.com/apache/incubator-doris/pull/8246#discussion_r815379917



##########
File path: 
fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/UserProperty.java
##########
@@ -523,86 +520,31 @@ public void write(DataOutput out) throws IOException {
     }
 
     public void readFields(DataInput in) throws IOException {
-        if (Catalog.getCurrentCatalogJournalVersion() < 
FeMetaVersion.VERSION_43) {
-            // consume the flag of empty user name
-            in.readBoolean();
-        }
-
-        // user name
-        if (Catalog.getCurrentCatalogJournalVersion() < 
FeMetaVersion.VERSION_30) {
-            qualifiedUser = 
ClusterNamespace.getFullName(SystemInfoService.DEFAULT_CLUSTER, 
Text.readString(in));
-        } else {
-            qualifiedUser = Text.readString(in);
-        }
-
-        if (Catalog.getCurrentCatalogJournalVersion() < 
FeMetaVersion.VERSION_43) {
-            int passwordLen = in.readInt();
-            byte[] password = new byte[passwordLen];
-            in.readFully(password);
-
-            // boolean isAdmin
-            in.readBoolean();
-
-            if (Catalog.getCurrentCatalogJournalVersion() >= 
FeMetaVersion.VERSION_1) {
-                // boolean isSuperuser
-                in.readBoolean();
-            }
-        }
+        qualifiedUser = Text.readString(in);
 
         if (Catalog.getCurrentCatalogJournalVersion() < 
FeMetaVersion.VERSION_100) {

Review comment:
       Actually, I am removing code that FeMetaVersion < VERSION_96. I am 
afraid of version 100 is too latest.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to