You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by pa...@apache.org on 2018/05/09 15:25:15 UTC
[trafficserver] branch master updated: No need to walk the buckets
for cache scan
This is an automated email from the ASF dual-hosted git repository.
paziz 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 9109ce9 No need to walk the buckets for cache scan
9109ce9 is described below
commit 9109ce99038dc7260539b41dd71fb31b3f494a85
Author: Persia Aziz <pe...@yahoo-inc.com>
AuthorDate: Tue May 8 17:12:43 2018 -0500
No need to walk the buckets for cache scan
---
cmd/traffic_cache_tool/CacheTool.cc | 4 ----
1 file changed, 4 deletions(-)
diff --git a/cmd/traffic_cache_tool/CacheTool.cc b/cmd/traffic_cache_tool/CacheTool.cc
index 6602f71..05c13dd 100644
--- a/cmd/traffic_cache_tool/CacheTool.cc
+++ b/cmd/traffic_cache_tool/CacheTool.cc
@@ -1356,11 +1356,8 @@ void static scan_span(Span *span)
for (auto strp : span->_stripes) {
strp->loadMeta();
strp->loadDir();
- strp->walk_all_buckets();
CacheScan cs(strp);
cs.Scan();
-
- // break; // to be removed
}
}
@@ -1374,7 +1371,6 @@ Scan_Cache()
cache.dumpSpans(Cache::SpanDumpDepth::SPAN);
for (auto sp : cache._spans) {
threadPool.emplace_back(scan_span, sp); // move constructor is necessary since std::thread is non copyable
- // break; // to be removed
}
for (auto &th : threadPool)
th.join();
--
To stop receiving notification emails like this one, please contact
paziz@apache.org.