morningman commented on a change in pull request #1802: Fix Cluster meta write 
error
URL: https://github.com/apache/incubator-doris/pull/1802#discussion_r324069148
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/cluster/Cluster.java
 ##########
 @@ -128,6 +129,7 @@ public void addDb(String name, long id) {
         try {
             dbNames.add(name);
             dbIds.add(id);
+            dbNameToIDs.put(name, id);
 
 Review comment:
   Do you need to rebuild the dbNameToIDs in readFields() function when 
replaying meta log?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to