You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/03/04 09:12:41 UTC

[GitHub] [incubator-doris] WingsGo commented on a change in pull request #2980: [Conf]Make default_storage_medium configurable

WingsGo commented on a change in pull request #2980: [Conf]Make default_storage_medium configurable
URL: https://github.com/apache/incubator-doris/pull/2980#discussion_r387533562
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/catalog/PartitionInfo.java
 ##########
 @@ -127,7 +127,7 @@ public void write(DataOutput out) throws IOException {
         out.writeInt(idToDataProperty.size());
         for (Map.Entry<Long, DataProperty> entry : idToDataProperty.entrySet()) {
             out.writeLong(entry.getKey());
-            if (entry.getValue() == DataProperty.DEFAULT_HDD_DATA_PROPERTY) {
+            if (entry.getValue() == DataProperty.DEFAULT_DATA_PROPERTY) {
 
 Review comment:
   I am confused why we should add a judge whether the DataProperty is default, can we just write `entry.getValue().write(out);`  and read as `DataProperty.read(in)`. I think the idToDataProperty's values can't be null?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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