Skip to content

Commit cb1876f

Browse files
committed
fix
1 parent fd2ea21 commit cb1876f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

be/src/exec/scan/scanner_scheduler.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,9 @@ void ScannerScheduler::_scanner_scan(std::shared_ptr<ScannerContext> ctx,
164164
max_run_time_watch.start();
165165
scanner->resume();
166166

167-
bool need_update_profile = true;
168167
auto update_scanner_profile = [&]() {
169-
if (need_update_profile) {
170-
scanner->pause();
171-
scanner->update_realtime_counters();
172-
need_update_profile = false;
173-
}
168+
scanner->pause();
169+
scanner->update_realtime_counters();
174170
};
175171

176172
Status status = Status::OK();

0 commit comments

Comments
 (0)