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/07 17:51:10 UTC

[trafficserver] 02/02: Diagnostic message when openning hostdb file fails

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

commit e5e58327af9f958098ef8cf474b8cb309226c3ad
Author: Persia Aziz <pe...@yahoo-inc.com>
AuthorDate: Tue Mar 6 17:12:01 2018 -0600

    Diagnostic message when openning hostdb file fails
    
    (cherry picked from commit 305f1d865a50aaa1437215b8c76b3d3608a2810c)
---
 iocore/hostdb/P_RefCountCache.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iocore/hostdb/P_RefCountCache.h b/iocore/hostdb/P_RefCountCache.h
index 4b7998e..dbe7e0e 100644
--- a/iocore/hostdb/P_RefCountCache.h
+++ b/iocore/hostdb/P_RefCountCache.h
@@ -578,7 +578,8 @@ LoadRefCountCacheFromPath(RefCountCache<CacheEntryType> &cache, std::string dirn
 
   int fd = open(filepath.c_str(), O_RDONLY);
   if (fd < 0) {
-    return -1; // specific code for missing?
+    Warning("Unable to open file %s; [Error]: %s", filepath.c_str(), strerror(errno));
+    return -1;
   }
 
   // read in the header

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