trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [trafficserver] branch 7.1.x updated: Clarifies alternate # selected in log output
Date Fri, 06 Jul 2018 17:23:44 GMT
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/7.1.x by this push:
     new 6e47397  Clarifies alternate # selected in log output
6e47397 is described below

commit 6e47397a7a7ce6a81bb62dd655d452ec6a16d296
Author: Randall Meyer <randallmeyer@yahoo.com>
AuthorDate: Tue Jul 3 13:08:08 2018 -0700

    Clarifies alternate # selected in log output
    
    Addresses issue #3914
    
    (cherry picked from commit 4813721fd6ca9cca65034e3be187acafe8963da2)
---
 proxy/http/HttpTransactCache.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/http/HttpTransactCache.cc b/proxy/http/HttpTransactCache.cc
index af1adb5..3f41051 100644
--- a/proxy/http/HttpTransactCache.cc
+++ b/proxy/http/HttpTransactCache.cc
@@ -265,7 +265,7 @@ HttpTransactCache::SelectFromAlternates(CacheHTTPInfoVector *cache_vector,
HTTPH
   Debug("http_seq", "[SelectFromAlternates] Chosen alternate # %d", best_index);
   if (is_debug_tag_set("http_alts")) {
     ACQUIRE_PRINT_LOCK()
-    fprintf(stderr, "[alts] and the winner is alternate number %d\n", best_index + 1);
+    fprintf(stderr, "[alts] and the winner is alternate number %d\n", best_index);
     RELEASE_PRINT_LOCK()
   }
 


Mime
View raw message