This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 8.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit fedd26d56ee8c492c4bb8d09530643319366fb9d Author: Randall Meyer <[email protected]> AuthorDate: Tue Jul 3 13:12:52 2018 -0700 Removes no-op macros ACQUIRE_PRINT_LOCK and RELEASE_PRINT_LOCK (cherry picked from commit fdab3cdd764ed53e3b6506e88a1642b3aee36734) --- proxy/http/HttpTransact.h | 5 ----- proxy/http/HttpTransactCache.cc | 4 ---- 2 files changed, 9 deletions(-) diff --git a/proxy/http/HttpTransact.h b/proxy/http/HttpTransact.h index f9ccd38..3cae78f 100644 --- a/proxy/http/HttpTransact.h +++ b/proxy/http/HttpTransact.h @@ -43,13 +43,9 @@ #define HTTP_RELEASE_ASSERT(X) ink_release_assert(X) -#define ACQUIRE_PRINT_LOCK() // ink_mutex_acquire(&print_lock); -#define RELEASE_PRINT_LOCK() // ink_mutex_release(&print_lock); - #define DUMP_HEADER(T, H, I, S) \ { \ if (diags->on(T)) { \ - ACQUIRE_PRINT_LOCK() \ fprintf(stderr, "+++++++++ %s +++++++++\n", S); \ fprintf(stderr, "-- State Machine Id: %" PRId64 "\n", I); \ char b[4096]; \ @@ -66,7 +62,6 @@ fprintf(stderr, "%s", b); \ } while (!done); \ } \ - RELEASE_PRINT_LOCK() \ } \ } diff --git a/proxy/http/HttpTransactCache.cc b/proxy/http/HttpTransactCache.cc index fa735a3..7a6be4e 100644 --- a/proxy/http/HttpTransactCache.cc +++ b/proxy/http/HttpTransactCache.cc @@ -180,9 +180,7 @@ HttpTransactCache::SelectFromAlternates(CacheHTTPInfoVector *cache_vector, HTTPH Debug("http_match", "[SelectFromAlternates] # alternates = %d", alt_count); Debug("http_seq", "[SelectFromAlternates] %d alternates for this cached doc", alt_count); if (is_debug_tag_set("http_alts")) { - ACQUIRE_PRINT_LOCK() fprintf(stderr, "[alts] There are %d alternates for this request header.\n", alt_count); - RELEASE_PRINT_LOCK() } if (!client_request->valid()) { @@ -256,9 +254,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); - RELEASE_PRINT_LOCK() } if ((best_index != -1) && (best_Q > unacceptable_Q)) {
