This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 06a0b357043 [chore] Comment for tv_nsec (#39752)
06a0b357043 is described below

commit 06a0b357043519e5b5c595b0891bf23cf3677732
Author: zhiqiang <seuhezhiqi...@163.com>
AuthorDate: Thu Aug 22 22:16:21 2024 +0800

    [chore] Comment for tv_nsec (#39752)
    
    just comment.
---
 be/src/runtime/fragment_mgr.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/be/src/runtime/fragment_mgr.cpp b/be/src/runtime/fragment_mgr.cpp
index d793a7f19e9..0b9b7eb19d6 100644
--- a/be/src/runtime/fragment_mgr.cpp
+++ b/be/src/runtime/fragment_mgr.cpp
@@ -1311,6 +1311,8 @@ void FragmentMgr::cancel_worker() {
                         itr != running_queries_on_all_fes.end()) {
                         // Query not found on this frontend, and the query 
arrives before the last check
                         if (itr->second.find(q_ctx->query_id()) == 
itr->second.end() &&
+                            // tv_nsec represents the number of nanoseconds 
that have elapsed since the time point stored in tv_sec.
+                            // tv_sec is enough, we do not need to check 
tv_nsec.
                             q_ctx->get_query_arrival_timestamp().tv_sec <
                                     check_invalid_query_last_timestamp.tv_sec 
&&
                             q_ctx->get_query_source() == 
QuerySource::INTERNAL_FRONTEND) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to