vagetablechicken commented on a change in pull request #3207: StorageEngine: 
unused_rowsets use unordered_multimap
URL: https://github.com/apache/incubator-doris/pull/3207#discussion_r398535226
 
 

 ##########
 File path: be/src/olap/storage_engine.h
 ##########
 @@ -296,7 +296,9 @@ class StorageEngine {
     static StorageEngine* _s_instance;
 
     Mutex _gc_mutex;
-    std::unordered_map<std::string, RowsetSharedPtr> _unused_rowsets;
+    // map<rowset_id(str), pair<rowset_path(str),RowsetSharedPtr>>
+    // if we use RowsetId as the key, we need custom hash func
+    std::unordered_multimap<std::string, 
std::pair<std::string,RowsetSharedPtr>> _unused_rowsets;
 
 Review comment:
   It couldn't be better. I'll fix it.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to