Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-2622

optimize the function ink_cluster_time

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0
    • Clustering, HTTP
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              jamespeach James Peach
              happy_fish100 Yu Qing
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: