You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2014/03/07 09:00:51 UTC

[jira] [Comment Edited] (TS-2622) optimize the function ink_cluster_time

    [ https://issues.apache.org/jira/browse/TS-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13923669#comment-13923669 ] 

Leif Hedstrom edited comment on TS-2622 at 3/7/14 7:59 AM:
-----------------------------------------------------------

Cool. Can you take a look at TS-2079 as well please, and see if that has any merit. I'm thinking that TS-2079 is a duplicate of this bug (or rather, the other way around) ?


was (Author: zwoop):
Cool. Can you take a look at TS-2079 as well please, and see if that has any merit.

> optimize the function ink_cluster_time
> --------------------------------------
>
>                 Key: TS-2622
>                 URL: https://issues.apache.org/jira/browse/TS-2622
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Clustering, HTTP
>            Reporter: Yu Qing
>              Labels: review
>             Fix For: 5.0.0
>
>         Attachments: 0001-TS-2622-optimize-the-function-ink_cluster_time.patch
>
>
> in proxy/http/HttpTransact.cc:
> these two global variables are useless, so should be removed.
> volatile ink_time_t global_time;
> volatile int32_t cluster_time_delta;
>   in the function  ink_cluster_time:
>    1. use ink_get_hrtime() instead of time(NULL)
>    2. remove useless CAS to set variable global_time because global_time NOT be used in other case.



--
This message was sent by Atlassian JIRA
(v6.2#6252)