/root/doris/be/src/util/scoped_cleanup.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <utility> |
21 | | |
22 | | #include "gutil/macros.h" |
23 | | |
24 | | // Run the given function body (which is typically a block of code surrounded by |
25 | | // curly-braces) when the current scope exits. |
26 | | // |
27 | | // Example: |
28 | | // int fd = open(...); |
29 | | // SCOPED_CLEANUP({ close(fd); }); |
30 | | // |
31 | | // NOTE: in the case that you want to cancel the cleanup, use the more verbose |
32 | | // (non-macro) form below. |
33 | | #define SCOPED_CLEANUP(func_body) \ |
34 | 77.1k | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); scoped_cleanup_test.cpp:_ZZN5doris35ScopedCleanup_TestCleanupMacro_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 34 | 1 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
threadpool_test.cpp:_ZZN5doris47ThreadPoolTest_TestThreadPoolWithNoMinimum_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 34 | 1 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
threadpool_test.cpp:_ZZN5doris67ThreadPoolTestTokenTypes_TestTokenSubmitsProcessedConcurrently_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 34 | 2 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
threadpool_test.cpp:_ZZN5doris49ThreadPoolTest_TestTokenSubmitsNonSequential_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 34 | 1 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
threadpool_test.cpp:_ZZN5doris47ThreadPoolTestTokenTypes_TestTokenShutdown_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 34 | 2 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
threadpool_test.cpp:_ZZN5doris70ThreadPoolTestTokenTypes_TestTokenSubmissionsAdhereToMaxQueueSize_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 34 | 2 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
Unexecuted instantiation: compaction.cpp:_ZZN5doris10Compaction14modify_rowsetsEPKNS_6Merger10StatisticsEENK3$_0clEv Unexecuted instantiation: compaction.cpp:_ZZN5doris10Compaction14modify_rowsetsEPKNS_6Merger10StatisticsEENK3$_1clEv Unexecuted instantiation: cold_data_compaction.cpp:_ZZN5doris18ColdDataCompaction14modify_rowsetsEPKNS_6Merger10StatisticsEENK3$_0clEv Unexecuted instantiation: task_worker_pool.cpp:_ZZN5doris19CreateTableTaskPool37_create_tablet_worker_thread_callbackEvENK3$_1clEv tablet.cpp:_ZZN5doris6Tablet10add_rowsetESt10shared_ptrINS_6RowsetEEENK3$_0clEv Line | Count | Source | 34 | 39 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
tablet.cpp:_ZZN5doris6Tablet14add_inc_rowsetERKSt10shared_ptrINS_6RowsetEEENK3$_0clEv Line | Count | Source | 34 | 40 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
tablet.cpp:_ZZN5doris6Tablet27delete_expired_stale_rowsetEvENK3$_0clEv Line | Count | Source | 34 | 1 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
tablet.cpp:_ZZN5doris6Tablet26calculate_cumulative_pointEvENK3$_0clEv Line | Count | Source | 34 | 29 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
tablet.cpp:_ZZN5doris6Tablet14_cooldown_dataEvENK3$_1clEv Line | Count | Source | 34 | 2 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
tablet.cpp:_ZZN5doris6Tablet14_cooldown_dataEvENK3$_2clEv Line | Count | Source | 34 | 2 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
tablet.cpp:_ZZN5doris6Tablet23_follow_cooldowned_dataEvENK3$_0clEv Line | Count | Source | 34 | 1 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
tablet.cpp:_ZZN5doris6Tablet23_follow_cooldowned_dataEvENK3$_1clEv Line | Count | Source | 34 | 1 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
Unexecuted instantiation: tablet.cpp:_ZZN5doris6Tablet25update_max_version_schemaERKSt10shared_ptrINS_12TabletSchemaEEENK3$_0clEv Unexecuted instantiation: full_compaction.cpp:_ZZN5doris14FullCompaction37_full_compaction_update_delete_bitmapERKSt10shared_ptrINS_6RowsetEEPNS_12RowsetWriterEENK3$_0clEv tablet_manager.cpp:_ZZN5doris13TabletManager21_drop_tablet_unlockedEllbbENK3$_1clEv Line | Count | Source | 34 | 23 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
Unexecuted instantiation: schema_change.cpp:_ZZZN5doris19SchemaChangeHandler27_convert_historical_rowsetsERKNS0_18SchemaChangeParamsEPlENK3$_0clEvENKUlvE_clEv Unexecuted instantiation: schema_change.cpp:_ZZN5doris19SchemaChangeHandler27_do_process_alter_tablet_v2ERKNS_17TAlterTabletReqV2EENK3$_2clEv Unexecuted instantiation: schema_change.cpp:_ZZN5doris19SchemaChangeHandler27_do_process_alter_tablet_v2ERKNS_17TAlterTabletReqV2EENK3$_3clEv Unexecuted instantiation: schema_change.cpp:_ZZN5doris19SchemaChangeHandler33_calc_delete_bitmap_for_mow_tableESt10shared_ptrINS_6TabletEElENK3$_0clEv Unexecuted instantiation: engine_clone_task.cpp:_ZZN5doris15EngineCloneTask13_finish_cloneEPNS_6TabletERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEElbENK3$_2clEv Unexecuted instantiation: index_builder.cpp:_ZZN5doris12IndexBuilder14modify_rowsetsEPKNS_6Merger10StatisticsEENK3$_0clEv threadpool.cpp:_ZZN5doris10ThreadPool15dispatch_threadEvENK3$_0clEv Line | Count | Source | 34 | 77.0k | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
pad_rowset_action.cpp:_ZZN5doris15PadRowsetAction11_pad_rowsetESt10shared_ptrINS_6TabletEERKNS_7VersionEENK3$_0clEv Line | Count | Source | 34 | 1 | auto VARNAME_LINENUM(scoped_cleanup) = MakeScopedCleanup([&] { func_body }); |
|
35 | | |
36 | | namespace doris { |
37 | | |
38 | | // A scoped object which runs a cleanup function when going out of scope. Can |
39 | | // be used for scoped resource cleanup. |
40 | | // |
41 | | // Use 'MakeScopedCleanup()' below to instantiate. |
42 | | template <typename F> |
43 | | class ScopedCleanup { |
44 | | public: |
45 | 43.6k | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} scoped_cleanup_test.cpp:_ZN5doris13ScopedCleanupIZNS_30ScopedCleanup_TestCleanup_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
scoped_cleanup_test.cpp:_ZN5doris13ScopedCleanupIZNS_35ScopedCleanup_TestCleanupMacro_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
scoped_cleanup_test.cpp:_ZN5doris13ScopedCleanupIZNS_36ScopedCleanup_TestCancelCleanup_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_47ThreadPoolTest_TestThreadPoolWithNoMinimum_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_50ThreadPoolTest_TestThreadPoolWithNoMaxThreads_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_28ThreadPoolTest_TestRace_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_67ThreadPoolTestTokenTypes_TestTokenSubmitsProcessedConcurrently_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 2 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_49ThreadPoolTest_TestTokenSubmitsNonSequential_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_47ThreadPoolTestTokenTypes_TestTokenShutdown_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 2 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_70ThreadPoolTestTokenTypes_TestTokenSubmissionsAdhereToMaxQueueSize_Test8TestBodyEvE3$_0EC2ES2_ Line | Count | Source | 45 | 2 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
Unexecuted instantiation: compaction.cpp:_ZN5doris13ScopedCleanupIZNS_10Compaction14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_0EC2ES6_ Unexecuted instantiation: compaction.cpp:_ZN5doris13ScopedCleanupIZNS_10Compaction14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_1EC2ES6_ Unexecuted instantiation: cold_data_compaction.cpp:_ZN5doris13ScopedCleanupIZNS_18ColdDataCompaction14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_0EC2ES6_ Unexecuted instantiation: task_worker_pool.cpp:_ZN5doris13ScopedCleanupIZNS_19CreateTableTaskPool37_create_tablet_worker_thread_callbackEvE3$_1EC2ES2_ tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet10add_rowsetESt10shared_ptrINS_6RowsetEEE3$_0EC2ES5_ Line | Count | Source | 45 | 39 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet14add_inc_rowsetERKSt10shared_ptrINS_6RowsetEEE3$_0EC2ES7_ Line | Count | Source | 45 | 40 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet27delete_expired_stale_rowsetEvE3$_0EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet26calculate_cumulative_pointEvE3$_0EC2ES2_ Line | Count | Source | 45 | 29 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet14_cooldown_dataEvE3$_1EC2ES2_ Line | Count | Source | 45 | 2 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet14_cooldown_dataEvE3$_2EC2ES2_ Line | Count | Source | 45 | 2 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet23_follow_cooldowned_dataEvE3$_0EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet23_follow_cooldowned_dataEvE3$_1EC2ES2_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
Unexecuted instantiation: tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet25update_max_version_schemaERKSt10shared_ptrINS_12TabletSchemaEEE3$_0EC2ES7_ Unexecuted instantiation: full_compaction.cpp:_ZN5doris13ScopedCleanupIZNS_14FullCompaction37_full_compaction_update_delete_bitmapERKSt10shared_ptrINS_6RowsetEEPNS_12RowsetWriterEE3$_0EC2ES9_ tablet_manager.cpp:_ZN5doris13ScopedCleanupIZNS_13TabletManager21_drop_tablet_unlockedEllbbE3$_1EC2ES2_ Line | Count | Source | 45 | 23 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
Unexecuted instantiation: schema_change.cpp:_ZN5doris13ScopedCleanupIZZNS_19SchemaChangeHandler27_convert_historical_rowsetsERKNS1_18SchemaChangeParamsEPlENK3$_0clEvEUlvE_EC2ES7_ Unexecuted instantiation: schema_change.cpp:_ZN5doris13ScopedCleanupIZNS_19SchemaChangeHandler27_do_process_alter_tablet_v2ERKNS_17TAlterTabletReqV2EE3$_2EC2ES5_ Unexecuted instantiation: schema_change.cpp:_ZN5doris13ScopedCleanupIZNS_19SchemaChangeHandler27_do_process_alter_tablet_v2ERKNS_17TAlterTabletReqV2EE3$_3EC2ES5_ Unexecuted instantiation: schema_change.cpp:_ZN5doris13ScopedCleanupIZNS_19SchemaChangeHandler33_calc_delete_bitmap_for_mow_tableESt10shared_ptrINS_6TabletEElE3$_0EC2ES5_ Unexecuted instantiation: engine_clone_task.cpp:_ZN5doris13ScopedCleanupIZNS_15EngineCloneTask13_finish_cloneEPNS_6TabletERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEElbE3$_2EC2ESC_ Unexecuted instantiation: index_builder.cpp:_ZN5doris13ScopedCleanupIZNS_12IndexBuilder14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_0EC2ES6_ thread.cpp:_ZN5doris13ScopedCleanupIZNS_6Thread12start_threadERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt8functionIFvvEEmP13scoped_refptrIS1_EE3$_0EC2ESI_ Line | Count | Source | 45 | 3.45k | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
threadpool.cpp:_ZN5doris13ScopedCleanupIZNS_10ThreadPool15dispatch_threadEvE3$_0EC2ES2_ Line | Count | Source | 45 | 40.0k | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
pad_rowset_action.cpp:_ZN5doris13ScopedCleanupIZNS_15PadRowsetAction11_pad_rowsetESt10shared_ptrINS_6TabletEERKNS_7VersionEE3$_0EC2ES8_ Line | Count | Source | 45 | 1 | explicit ScopedCleanup(F f) : cancelled_(false), f_(std::move(f)) {} |
|
46 | 43.6k | ~ScopedCleanup() { |
47 | 43.6k | if (!cancelled_) { |
48 | 40.2k | f_(); |
49 | 40.2k | } |
50 | 43.6k | } scoped_cleanup_test.cpp:_ZN5doris13ScopedCleanupIZNS_30ScopedCleanup_TestCleanup_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
scoped_cleanup_test.cpp:_ZN5doris13ScopedCleanupIZNS_35ScopedCleanup_TestCleanupMacro_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
scoped_cleanup_test.cpp:_ZN5doris13ScopedCleanupIZNS_36ScopedCleanup_TestCancelCleanup_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 0 | f_(); | 49 | 0 | } | 50 | 1 | } |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_47ThreadPoolTest_TestThreadPoolWithNoMinimum_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_50ThreadPoolTest_TestThreadPoolWithNoMaxThreads_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_28ThreadPoolTest_TestRace_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_67ThreadPoolTestTokenTypes_TestTokenSubmitsProcessedConcurrently_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 2 | ~ScopedCleanup() { | 47 | 2 | if (!cancelled_) { | 48 | 2 | f_(); | 49 | 2 | } | 50 | 2 | } |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_49ThreadPoolTest_TestTokenSubmitsNonSequential_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_47ThreadPoolTestTokenTypes_TestTokenShutdown_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 2 | ~ScopedCleanup() { | 47 | 2 | if (!cancelled_) { | 48 | 2 | f_(); | 49 | 2 | } | 50 | 2 | } |
threadpool_test.cpp:_ZN5doris13ScopedCleanupIZNS_70ThreadPoolTestTokenTypes_TestTokenSubmissionsAdhereToMaxQueueSize_Test8TestBodyEvE3$_0ED2Ev Line | Count | Source | 46 | 2 | ~ScopedCleanup() { | 47 | 2 | if (!cancelled_) { | 48 | 2 | f_(); | 49 | 2 | } | 50 | 2 | } |
Unexecuted instantiation: compaction.cpp:_ZN5doris13ScopedCleanupIZNS_10Compaction14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_0ED2Ev Unexecuted instantiation: compaction.cpp:_ZN5doris13ScopedCleanupIZNS_10Compaction14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_1ED2Ev Unexecuted instantiation: cold_data_compaction.cpp:_ZN5doris13ScopedCleanupIZNS_18ColdDataCompaction14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_0ED2Ev Unexecuted instantiation: task_worker_pool.cpp:_ZN5doris13ScopedCleanupIZNS_19CreateTableTaskPool37_create_tablet_worker_thread_callbackEvE3$_1ED2Ev tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet10add_rowsetESt10shared_ptrINS_6RowsetEEE3$_0ED2Ev Line | Count | Source | 46 | 39 | ~ScopedCleanup() { | 47 | 39 | if (!cancelled_) { | 48 | 39 | f_(); | 49 | 39 | } | 50 | 39 | } |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet14add_inc_rowsetERKSt10shared_ptrINS_6RowsetEEE3$_0ED2Ev Line | Count | Source | 46 | 40 | ~ScopedCleanup() { | 47 | 40 | if (!cancelled_) { | 48 | 40 | f_(); | 49 | 40 | } | 50 | 40 | } |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet27delete_expired_stale_rowsetEvE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet26calculate_cumulative_pointEvE3$_0ED2Ev Line | Count | Source | 46 | 29 | ~ScopedCleanup() { | 47 | 29 | if (!cancelled_) { | 48 | 29 | f_(); | 49 | 29 | } | 50 | 29 | } |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet14_cooldown_dataEvE3$_1ED2Ev Line | Count | Source | 46 | 2 | ~ScopedCleanup() { | 47 | 2 | if (!cancelled_) { | 48 | 2 | f_(); | 49 | 2 | } | 50 | 2 | } |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet14_cooldown_dataEvE3$_2ED2Ev Line | Count | Source | 46 | 2 | ~ScopedCleanup() { | 47 | 2 | if (!cancelled_) { | 48 | 2 | f_(); | 49 | 2 | } | 50 | 2 | } |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet23_follow_cooldowned_dataEvE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet23_follow_cooldowned_dataEvE3$_1ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
Unexecuted instantiation: tablet.cpp:_ZN5doris13ScopedCleanupIZNS_6Tablet25update_max_version_schemaERKSt10shared_ptrINS_12TabletSchemaEEE3$_0ED2Ev Unexecuted instantiation: full_compaction.cpp:_ZN5doris13ScopedCleanupIZNS_14FullCompaction37_full_compaction_update_delete_bitmapERKSt10shared_ptrINS_6RowsetEEPNS_12RowsetWriterEE3$_0ED2Ev tablet_manager.cpp:_ZN5doris13ScopedCleanupIZNS_13TabletManager21_drop_tablet_unlockedEllbbE3$_1ED2Ev Line | Count | Source | 46 | 23 | ~ScopedCleanup() { | 47 | 23 | if (!cancelled_) { | 48 | 23 | f_(); | 49 | 23 | } | 50 | 23 | } |
Unexecuted instantiation: schema_change.cpp:_ZN5doris13ScopedCleanupIZZNS_19SchemaChangeHandler27_convert_historical_rowsetsERKNS1_18SchemaChangeParamsEPlENK3$_0clEvEUlvE_ED2Ev Unexecuted instantiation: schema_change.cpp:_ZN5doris13ScopedCleanupIZNS_19SchemaChangeHandler27_do_process_alter_tablet_v2ERKNS_17TAlterTabletReqV2EE3$_2ED2Ev Unexecuted instantiation: schema_change.cpp:_ZN5doris13ScopedCleanupIZNS_19SchemaChangeHandler27_do_process_alter_tablet_v2ERKNS_17TAlterTabletReqV2EE3$_3ED2Ev Unexecuted instantiation: schema_change.cpp:_ZN5doris13ScopedCleanupIZNS_19SchemaChangeHandler33_calc_delete_bitmap_for_mow_tableESt10shared_ptrINS_6TabletEElE3$_0ED2Ev Unexecuted instantiation: engine_clone_task.cpp:_ZN5doris13ScopedCleanupIZNS_15EngineCloneTask13_finish_cloneEPNS_6TabletERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEElbE3$_2ED2Ev Unexecuted instantiation: index_builder.cpp:_ZN5doris13ScopedCleanupIZNS_12IndexBuilder14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_0ED2Ev thread.cpp:_ZN5doris13ScopedCleanupIZNS_6Thread12start_threadERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt8functionIFvvEEmP13scoped_refptrIS1_EE3$_0ED2Ev Line | Count | Source | 46 | 3.45k | ~ScopedCleanup() { | 47 | 3.45k | if (!cancelled_) { | 48 | 0 | f_(); | 49 | 0 | } | 50 | 3.45k | } |
threadpool.cpp:_ZN5doris13ScopedCleanupIZNS_10ThreadPool15dispatch_threadEvE3$_0ED2Ev Line | Count | Source | 46 | 40.0k | ~ScopedCleanup() { | 47 | 40.0k | if (!cancelled_) { | 48 | 40.0k | f_(); | 49 | 40.0k | } | 50 | 40.0k | } |
pad_rowset_action.cpp:_ZN5doris13ScopedCleanupIZNS_15PadRowsetAction11_pad_rowsetESt10shared_ptrINS_6TabletEERKNS_7VersionEE3$_0ED2Ev Line | Count | Source | 46 | 1 | ~ScopedCleanup() { | 47 | 1 | if (!cancelled_) { | 48 | 1 | f_(); | 49 | 1 | } | 50 | 1 | } |
|
51 | 3.45k | void cancel() { cancelled_ = true; } scoped_cleanup_test.cpp:_ZN5doris13ScopedCleanupIZNS_36ScopedCleanup_TestCancelCleanup_Test8TestBodyEvE3$_0E6cancelEv Line | Count | Source | 51 | 1 | void cancel() { cancelled_ = true; } |
thread.cpp:_ZN5doris13ScopedCleanupIZNS_6Thread12start_threadERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt8functionIFvvEEmP13scoped_refptrIS1_EE3$_0E6cancelEv Line | Count | Source | 51 | 3.45k | void cancel() { cancelled_ = true; } |
|
52 | | |
53 | | private: |
54 | | bool cancelled_; |
55 | | F f_; |
56 | | }; |
57 | | |
58 | | // Creates a new scoped cleanup instance with the provided function. |
59 | | template <typename F> |
60 | 43.6k | ScopedCleanup<F> MakeScopedCleanup(F f) { |
61 | 43.6k | return ScopedCleanup<F>(f); |
62 | 43.6k | } scoped_cleanup_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_30ScopedCleanup_TestCleanup_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
scoped_cleanup_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_35ScopedCleanup_TestCleanupMacro_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
scoped_cleanup_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_36ScopedCleanup_TestCancelCleanup_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
threadpool_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_47ThreadPoolTest_TestThreadPoolWithNoMinimum_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
threadpool_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_50ThreadPoolTest_TestThreadPoolWithNoMaxThreads_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
threadpool_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_28ThreadPoolTest_TestRace_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
threadpool_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_67ThreadPoolTestTokenTypes_TestTokenSubmitsProcessedConcurrently_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 2 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 2 | return ScopedCleanup<F>(f); | 62 | 2 | } |
threadpool_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_49ThreadPoolTest_TestTokenSubmitsNonSequential_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
threadpool_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_47ThreadPoolTestTokenTypes_TestTokenShutdown_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 2 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 2 | return ScopedCleanup<F>(f); | 62 | 2 | } |
threadpool_test.cpp:_ZN5doris17MakeScopedCleanupIZNS_70ThreadPoolTestTokenTypes_TestTokenSubmissionsAdhereToMaxQueueSize_Test8TestBodyEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 2 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 2 | return ScopedCleanup<F>(f); | 62 | 2 | } |
Unexecuted instantiation: compaction.cpp:_ZN5doris17MakeScopedCleanupIZNS_10Compaction14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_0EENS_13ScopedCleanupIT_EES8_ Unexecuted instantiation: compaction.cpp:_ZN5doris17MakeScopedCleanupIZNS_10Compaction14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_1EENS_13ScopedCleanupIT_EES8_ Unexecuted instantiation: cold_data_compaction.cpp:_ZN5doris17MakeScopedCleanupIZNS_18ColdDataCompaction14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_0EENS_13ScopedCleanupIT_EES8_ Unexecuted instantiation: task_worker_pool.cpp:_ZN5doris17MakeScopedCleanupIZNS_19CreateTableTaskPool37_create_tablet_worker_thread_callbackEvE3$_1EENS_13ScopedCleanupIT_EES4_ tablet.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Tablet10add_rowsetESt10shared_ptrINS_6RowsetEEE3$_0EENS_13ScopedCleanupIT_EES7_ Line | Count | Source | 60 | 39 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 39 | return ScopedCleanup<F>(f); | 62 | 39 | } |
tablet.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Tablet14add_inc_rowsetERKSt10shared_ptrINS_6RowsetEEE3$_0EENS_13ScopedCleanupIT_EES9_ Line | Count | Source | 60 | 40 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 40 | return ScopedCleanup<F>(f); | 62 | 40 | } |
tablet.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Tablet27delete_expired_stale_rowsetEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
tablet.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Tablet26calculate_cumulative_pointEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 29 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 29 | return ScopedCleanup<F>(f); | 62 | 29 | } |
tablet.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Tablet14_cooldown_dataEvE3$_1EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 2 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 2 | return ScopedCleanup<F>(f); | 62 | 2 | } |
tablet.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Tablet14_cooldown_dataEvE3$_2EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 2 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 2 | return ScopedCleanup<F>(f); | 62 | 2 | } |
tablet.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Tablet23_follow_cooldowned_dataEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
tablet.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Tablet23_follow_cooldowned_dataEvE3$_1EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
Unexecuted instantiation: tablet.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Tablet25update_max_version_schemaERKSt10shared_ptrINS_12TabletSchemaEEE3$_0EENS_13ScopedCleanupIT_EES9_ Unexecuted instantiation: full_compaction.cpp:_ZN5doris17MakeScopedCleanupIZNS_14FullCompaction37_full_compaction_update_delete_bitmapERKSt10shared_ptrINS_6RowsetEEPNS_12RowsetWriterEE3$_0EENS_13ScopedCleanupIT_EESB_ tablet_manager.cpp:_ZN5doris17MakeScopedCleanupIZNS_13TabletManager21_drop_tablet_unlockedEllbbE3$_1EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 23 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 23 | return ScopedCleanup<F>(f); | 62 | 23 | } |
Unexecuted instantiation: schema_change.cpp:_ZN5doris17MakeScopedCleanupIZZNS_19SchemaChangeHandler27_convert_historical_rowsetsERKNS1_18SchemaChangeParamsEPlENK3$_0clEvEUlvE_EENS_13ScopedCleanupIT_EES9_ Unexecuted instantiation: schema_change.cpp:_ZN5doris17MakeScopedCleanupIZNS_19SchemaChangeHandler27_do_process_alter_tablet_v2ERKNS_17TAlterTabletReqV2EE3$_2EENS_13ScopedCleanupIT_EES7_ Unexecuted instantiation: schema_change.cpp:_ZN5doris17MakeScopedCleanupIZNS_19SchemaChangeHandler27_do_process_alter_tablet_v2ERKNS_17TAlterTabletReqV2EE3$_3EENS_13ScopedCleanupIT_EES7_ Unexecuted instantiation: schema_change.cpp:_ZN5doris17MakeScopedCleanupIZNS_19SchemaChangeHandler33_calc_delete_bitmap_for_mow_tableESt10shared_ptrINS_6TabletEElE3$_0EENS_13ScopedCleanupIT_EES7_ Unexecuted instantiation: engine_clone_task.cpp:_ZN5doris17MakeScopedCleanupIZNS_15EngineCloneTask13_finish_cloneEPNS_6TabletERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEElbE3$_2EENS_13ScopedCleanupIT_EESE_ Unexecuted instantiation: index_builder.cpp:_ZN5doris17MakeScopedCleanupIZNS_12IndexBuilder14modify_rowsetsEPKNS_6Merger10StatisticsEE3$_0EENS_13ScopedCleanupIT_EES8_ thread.cpp:_ZN5doris17MakeScopedCleanupIZNS_6Thread12start_threadERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_RKSt8functionIFvvEEmP13scoped_refptrIS1_EE3$_0EENS_13ScopedCleanupIT_EESK_ Line | Count | Source | 60 | 3.45k | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 3.45k | return ScopedCleanup<F>(f); | 62 | 3.45k | } |
threadpool.cpp:_ZN5doris17MakeScopedCleanupIZNS_10ThreadPool15dispatch_threadEvE3$_0EENS_13ScopedCleanupIT_EES4_ Line | Count | Source | 60 | 40.0k | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 40.0k | return ScopedCleanup<F>(f); | 62 | 40.0k | } |
pad_rowset_action.cpp:_ZN5doris17MakeScopedCleanupIZNS_15PadRowsetAction11_pad_rowsetESt10shared_ptrINS_6TabletEERKNS_7VersionEE3$_0EENS_13ScopedCleanupIT_EESA_ Line | Count | Source | 60 | 1 | ScopedCleanup<F> MakeScopedCleanup(F f) { | 61 | 1 | return ScopedCleanup<F>(f); | 62 | 1 | } |
|
63 | | |
64 | | } // namespace doris |