mturk       2004/12/16 07:07:55

  Modified:    jk/native/common jk_lb_worker.c
  Log:
  Reorganize logging for getting candidate worker. It is not an error
  if the domain is for the worker is not set.
  
  Revision  Changes    Path
  1.37      +5 -8      jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
  
  Index: jk_lb_worker.c
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- jk_lb_worker.c    16 Dec 2004 10:56:03 -0000      1.36
  +++ jk_lb_worker.c    16 Dec 2004 15:07:55 -0000      1.37
  @@ -243,9 +243,6 @@
           case 5:
               return JK_TRUE;
       }
  -    jk_log(l, JK_LOG_ERROR,
  -        "wrong search id %d\n",
  -        search_id);
       return JK_FALSE;
   }
   
  @@ -279,10 +276,10 @@
              search_type, search_string);
   
       for (i = start; i < stop; i++) {
  -       jk_log(l, JK_LOG_DEBUG,
  -             "testing worker %s (%d) for match with %s (%s)\n",
  -             p->lb_workers[i].name, i, search_type, search_string);
           if (is_worker_candidate(&(p->lb_workers[i]), search_id, 
search_string, l)) {
  +           jk_log(l, JK_LOG_DEBUG,
  +                  "found candidate worker %s (%d) for match with %s (%s)\n",
  +                  p->lb_workers[i].name, i, search_type, search_string);
               if (search_id == 1) {
                   *domain_id = i;
               }
  @@ -344,7 +341,7 @@
       jk_log(l, JK_LOG_DEBUG,
              "found no %s (%s) worker\n",
              search_type, search_string);
  -   JK_LEAVE_CS(&(p->cs), i);
  +    JK_LEAVE_CS(&(p->cs), i);
       return rc;
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to