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/03/08 19:52:37 UTC

[trafficserver] branch 7.1.x updated: Print the volume path that is clearing its directories

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 28d6e55  Print the volume path that is clearing its directories
28d6e55 is described below

commit 28d6e55ae1b15c5e0a9e296294eb6fe4c7eb0838
Author: Persia Aziz <pe...@yahoo-inc.com>
AuthorDate: Thu Mar 8 11:59:58 2018 -0600

    Print the volume path that is clearing its directories
    
    (cherry picked from commit 3a5afe8b23b5106d55a6d20f56baf1ad9c3be8f0)
    
     Conflicts:
    	iocore/cache/Cache.cc
---
 iocore/cache/Cache.cc | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index f74657f..ad08f8f 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -1397,8 +1397,8 @@ Vol::init(char *s, off_t blocks, off_t dir_skip, bool clear)
   off_t footer_offset = vol_dirlen(this) - footerlen;
   // try A
   off_t as = skip;
-  if (is_debug_tag_set("cache_init"))
-    Note("reading directory '%s'", hash_text.get());
+
+  Debug("cache_init", "reading directory '%s'", hash_text.get());
   SET_HANDLER(&Vol::handle_header_read);
   init_info->vol_aio[0].aiocb.aio_offset = as;
   init_info->vol_aio[1].aiocb.aio_offset = as + footer_offset;
@@ -1736,9 +1736,10 @@ Ldone : {
     dir_clear_range(clear_end, DIR_OFFSET_MAX, this);
     dir_clear_range(1, clear_start, this);
   }
-  if (is_debug_tag_set("cache_init"))
-    Note("recovery clearing offsets [%" PRIu64 ", %" PRIu64 "] sync_serial %d next %d\n", header->write_pos, recover_pos,
-         header->sync_serial, next_sync_serial);
+
+  Note("recovery clearing offsets of Vol %s : [%" PRIu64 ", %" PRIu64 "] sync_serial %d next %d\n", hash_text.get(),
+       header->write_pos, recover_pos, header->sync_serial, next_sync_serial);
+
   footer->sync_serial = header->sync_serial = next_sync_serial;
 
   for (int i = 0; i < 3; i++) {

-- 
To stop receiving notification emails like this one, please contact
zwoop@apache.org.