You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2018/09/12 02:09:17 UTC
[trafficserver] branch master updated: Fix storage.config path
issue for runroot
This is an automated email from the ASF dual-hosted git repository.
shinrich 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 e983e80 Fix storage.config path issue for runroot
e983e80 is described below
commit e983e80c8932d36d7d82093632c426d4678d182b
Author: Xavier Chi <ch...@gmail.com>
AuthorDate: Tue Sep 11 17:44:04 2018 -0500
Fix storage.config path issue for runroot
---
iocore/cache/Store.cc | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/iocore/cache/Store.cc b/iocore/cache/Store.cc
index 4ee9a44..d302816 100644
--- a/iocore/cache/Store.cc
+++ b/iocore/cache/Store.cc
@@ -391,12 +391,7 @@ Store::read_config()
}
}
- std::string pp;
- if (get_runroot().empty()) {
- pp = Layout::get()->relative(path);
- } else {
- pp = Layout::get()->cachedir;
- }
+ std::string pp = Layout::get()->relative(path);
ns = new Span;
Debug("cache_init", "Store::read_config - ns = new Span; ns->init(\"%s\",%" PRId64 "), forced volume=%d%s%s", pp.c_str(), size,