chaoyli commented on a change in pull request #516: Modify compaction code to 
be adapted to Rowset interface
URL: https://github.com/apache/incubator-doris/pull/516#discussion_r246648857
 
 

 ##########
 File path: be/src/olap/base_compaction.h
 ##########
 @@ -82,35 +84,35 @@ class BaseCompaction {
     // 
     // 输入参数:
     // - new_base_version_hash: 新Base的VersionHash
-    // - base_data_sources: 生成新Base需要的ColumnData*
+    // - rs_readers : 生成新Base需要的RowsetReaders*
     // - row_count: 生成Base过程中产生的row_count
     //
     // 返回值:
     // - 如果执行成功,则返回OLAP_SUCCESS;
     // - 其它情况下,返回相应的错误码
     OLAPStatus _do_base_compaction(VersionHash new_base_version_hash,
-                                  std::vector<ColumnData*>* base_data_sources,
-                                  uint64_t* row_count);
+                                   const std::vector<RowsetSharedPtr>& rowsets,
+                                   uint64_t* row_count);
    
     // 更新Header使得修改对外可见
     // 输出参数:
-    // - unused_olap_indices: 需要被物理删除的SegmentGroup*
+    // - unused_rowsets: 需要被物理删除的Rowset*
     //
     // 返回值:
     // - 如果执行成功,则返回OLAP_SUCCESS;
     // - 其它情况下,返回相应的错误码
     OLAPStatus _update_header(uint64_t row_count,
-                              std::vector<SegmentGroup*>* unused_olap_indices);
+                              std::vector<RowsetSharedPtr>* unused_rowsets);
 
 Review comment:
   It's OK

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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