acelyc111 commented on a change in pull request #5344:
URL: https://github.com/apache/incubator-doris/pull/5344#discussion_r571037899



##########
File path: be/src/olap/compaction.cpp
##########
@@ -127,8 +127,11 @@ OLAPStatus Compaction::do_compaction_impl(int64_t permits) 
{
     int64_t now = UnixMillis();
     if (compaction_type() == ReaderType::READER_CUMULATIVE_COMPACTION) {
         _tablet->set_last_cumu_compaction_success_time(now);
+        
_tablet->update_cumulative_compaction_score(_tablet->calc_compaction_score(CompactionType::CUMULATIVE_COMPACTION));

Review comment:
       I found every call of  `update_cumulative_compaction_score()` 's 
parameter is `calc_compaction_score()`, what's reason to do this?

##########
File path: be/src/olap/compaction.cpp
##########
@@ -127,8 +127,11 @@ OLAPStatus Compaction::do_compaction_impl(int64_t permits) 
{
     int64_t now = UnixMillis();
     if (compaction_type() == ReaderType::READER_CUMULATIVE_COMPACTION) {
         _tablet->set_last_cumu_compaction_success_time(now);
+        
_tablet->update_cumulative_compaction_score(_tablet->calc_compaction_score(CompactionType::CUMULATIVE_COMPACTION));

Review comment:
       I found every call of  `update_cumulative_compaction_score()` 's 
parameter is `calc_compaction_score()`, what's reason to do this?

##########
File path: be/src/olap/compaction.cpp
##########
@@ -127,8 +127,11 @@ OLAPStatus Compaction::do_compaction_impl(int64_t permits) 
{
     int64_t now = UnixMillis();
     if (compaction_type() == ReaderType::READER_CUMULATIVE_COMPACTION) {
         _tablet->set_last_cumu_compaction_success_time(now);
+        
_tablet->update_cumulative_compaction_score(_tablet->calc_compaction_score(CompactionType::CUMULATIVE_COMPACTION));

Review comment:
       I found every call of  `update_cumulative_compaction_score()` 's 
parameter is `calc_compaction_score()`, what's reason to do this?




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



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

Reply via email to