[ 
https://issues.apache.org/jira/browse/TS-4775?focusedWorklogId=26897&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-26897
 ]

ASF GitHub Bot logged work on TS-4775:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Aug/16 12:41
            Start Date: 23/Aug/16 12:41
    Worklog Time Spent: 10m 
      Work Description: Github user zwoop commented on a diff in the pull 
request:

    https://github.com/apache/trafficserver/pull/904#discussion_r75856806
  
    --- Diff: lib/ts/InkErrno.cc ---
    @@ -0,0 +1,106 @@
    +/** @file
    +
    +  Error code defines
    +
    +  @section license License
    +
    +  Licensed to the Apache Software Foundation (ASF) under one
    +  or more contributor license agreements.  See the NOTICE file
    +  distributed with this work for additional information
    +  regarding copyright ownership.  The ASF licenses this file
    +  to you under the Apache License, Version 2.0 (the
    +  "License"); you may not use this file except in compliance
    +  with the License.  You may obtain a copy of the License at
    +
    +      http://www.apache.org/licenses/LICENSE-2.0
    +
    +  Unless required by applicable law or agreed to in writing, software
    +  distributed under the License is distributed on an "AS IS" BASIS,
    +  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +  See the License for the specific language governing permissions and
    +  limitations under the License.
    +*/
    +
    +#include "InkErrno.h"
    +#include <string.h>
    +
    +const char *
    +InkStrerror(int ink_errno)
    +{
    +  if (ink_errno < INK_START_ERRNO) {
    +    return strerror(ink_errno);
    --- End diff --
    
    I assume we don't have to worry about this not being re-entrant ? Looking 
at the rest of our code, we never use strerror_r() anyways (except in a couple 
of places).


Issue Time Tracking
-------------------

    Worklog Id:     (was: 26897)
    Time Spent: 40m  (was: 0.5h)

> Better cache error debugging.
> -----------------------------
>
>                 Key: TS-4775
>                 URL: https://issues.apache.org/jira/browse/TS-4775
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: James Peach
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> In {{HttpSM::state_cache_open_read}} log a better error when a cache read 
> fails.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to