You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2018/07/06 17:23:44 UTC

[trafficserver] branch 7.1.x updated: Clarifies alternate # selected in log output

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 <ra...@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()
   }