You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2018/09/26 19:56:11 UTC
[trafficserver] branch master updated: Removed headers that are not
used
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new b20cc8d Removed headers that are not used
b20cc8d is described below
commit b20cc8df43ed85a0de859134a348de3aba33bf45
Author: Bryan Call <bc...@apache.org>
AuthorDate: Wed Sep 26 12:05:16 2018 -0700
Removed headers that are not used
---
proxy/TimeTrace.h | 70 -------------------------------------
src/traffic_cache_tool/CacheStore.h | 48 -------------------------
2 files changed, 118 deletions(-)
diff --git a/proxy/TimeTrace.h b/proxy/TimeTrace.h
deleted file mode 100644
index 66becc2..0000000
--- a/proxy/TimeTrace.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/** @file
-
- A brief file description
-
- @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.
- */
-
-#pragma once
-
-// #define ENABLE_TIME_TRACE
-
-#define TIME_DIST_BUCKETS 500
-#define TIME_DIST_BUCKETS_SIZE TIME_DIST_BUCKETS + 1
-
-#ifdef ENABLE_TIME_TRACE
-extern int cdb_callback_time_dist[TIME_DIST_BUCKETS_SIZE];
-extern int cdb_cache_callbacks;
-
-extern int callback_time_dist[TIME_DIST_BUCKETS_SIZE];
-extern int cache_callbacks;
-
-extern int rmt_callback_time_dist[TIME_DIST_BUCKETS_SIZE];
-extern int rmt_cache_callbacks;
-
-extern int lkrmt_callback_time_dist[TIME_DIST_BUCKETS_SIZE];
-extern int lkrmt_cache_callbacks;
-
-extern int cntlck_acquire_time_dist[TIME_DIST_BUCKETS_SIZE];
-extern int cntlck_acquire_events;
-
-extern int immediate_events_time_dist[TIME_DIST_BUCKETS_SIZE];
-extern int cnt_immediate_events;
-
-extern int inmsg_time_dist[TIME_DIST_BUCKETS_SIZE];
-extern int inmsg_events;
-
-extern int open_delay_time_dist[TIME_DIST_BUCKETS_SIZE];
-extern int open_delay_events;
-#endif // ENABLE_TIME_TRACE
-
-#ifdef ENABLE_TIME_TRACE
-#define LOG_EVENT_TIME(_start_time, _time_dist, _time_cnt) \
- do { \
- ink_hrtime now = ink_get_hrtime(); \
- unsigned int bucket = (now - _start_time) / HRTIME_MSECONDS(10); \
- if (bucket > TIME_DIST_BUCKETS) \
- bucket = TIME_DIST_BUCKETS; \
- ink_atomic_increment(&_time_dist[bucket], 1); \
- ink_atomic_increment(&_time_cnt, 1); \
- } while (0)
-
-#else // !ENABLE_TIME_TRACE
-#define LOG_EVENT_TIME(_start_time, _time_dist, _time_cnt)
-#endif // !ENABLE_TIME_TRACE
diff --git a/src/traffic_cache_tool/CacheStore.h b/src/traffic_cache_tool/CacheStore.h
deleted file mode 100644
index ba40208..0000000
--- a/src/traffic_cache_tool/CacheStore.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/** @file
-
- Overall cache storage structures.
-
- @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.
- */
-
-#pragma once
-
-#include <vector>
-
-namespace ApacheTrafficServer
-{
-class CacheStore
-{
- /// Configuration data for the cache store.
- class Config
- {
- public:
- /// A single item (line) from the configuration.
- struct Item {
- StringView
- };
-
- private:
- /// Items read from the configuration.
- std::vector<Item> _items;
- /// The raw text of the configuration file.
- std::unique_ptr<char *> _text;
- };
-};
-} // namespace ApacheTrafficServer