chaoyli commented on a change in pull request #1374: add garbase collect by 
rowsetid
URL: https://github.com/apache/incubator-doris/pull/1374#discussion_r297037830
 
 

 ##########
 File path: be/src/olap/tablet.cpp
 ##########
 @@ -839,6 +839,30 @@ bool Tablet::check_path(const std::string& path_to_check) 
{
             return true;
         }
     }
+    for (auto& inc_version_rowset : _inc_rs_version_map) {
+        bool ret = inc_version_rowset.second->check_path(path_to_check);
+        if (ret) {
+            return true;
+        }
+    }
+    return false;
+}
+
+bool Tablet::check_rowset_id(RowsetId rowset_id) {
+    bool ret = false;
+    for (auto& version_rowset : _rs_version_map) {
+        ret = version_rowset.second->rowset_id() == rowset_id;
 
 Review comment:
   if (version_rowset.second->rowset_id() == rowset_id) {
       return true;
   }

----------------------------------------------------------------
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