Yu Qing created TS-2622:
---------------------------
Summary: 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
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)