This is an automated email from the ASF dual-hosted git repository. caiconghui pushed a commit to branch tablet_index in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/tablet_index by this push: new 45f81a89476 do small optimization for loop 45f81a89476 is described below commit 45f81a894765bdf5ae5b54a09eec4ac899f4877f Author: caiconghui1 <caicongh...@jd.com> AuthorDate: Mon Nov 13 00:17:27 2023 +0800 do small optimization for loop --- be/src/vec/sink/vtablet_finder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/be/src/vec/sink/vtablet_finder.cpp b/be/src/vec/sink/vtablet_finder.cpp index 8bfd4a88aa4..fc169f3a626 100644 --- a/be/src/vec/sink/vtablet_finder.cpp +++ b/be/src/vec/sink/vtablet_finder.cpp @@ -108,6 +108,10 @@ Status OlapTabletFinder::find_tablets(RuntimeState* state, Block* block, int row partition->load_tablet_idx++; } _partition_to_tablet_map.erase(partition->id); + } else { + if (_partition_to_tablet_map.empty()) { + break; + } } } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org