Skip to content

Commit

Permalink
Set thread name for seg task scheduler (#9362)
Browse files Browse the repository at this point in the history
close #8652
  • Loading branch information
JaySon-Huang authored Aug 26, 2024
1 parent 0c42e75 commit 29679a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <Common/setThreadName.h>
#include <Storages/DeltaMerge/ReadThread/SegmentReadTaskScheduler.h>
#include <Storages/DeltaMerge/ReadThread/SegmentReader.h>
#include <Storages/DeltaMerge/Segment.h>
Expand Down Expand Up @@ -236,6 +237,7 @@ bool SegmentReadTaskScheduler::schedule()

void SegmentReadTaskScheduler::schedLoop()
{
setThreadName("segment-sched");
while (!isStop())
{
if (!schedule())
Expand Down

0 comments on commit 29679a9

Please sign in to comment.