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 91e8595 Write_pos should be initialized with offset of the content
start
91e8595 is described below
commit 91e85956940858dea062ad7082bb0e4c7b30d00c
Author: Persia Aziz <[email protected]>
AuthorDate: Mon Apr 2 16:43:05 2018 -0500
Write_pos should be initialized with offset of the content start
---
cmd/traffic_cache_tool/CacheTool.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/traffic_cache_tool/CacheTool.cc
b/cmd/traffic_cache_tool/CacheTool.cc
index 1d36900..c1c3708 100644
--- a/cmd/traffic_cache_tool/CacheTool.cc
+++ b/cmd/traffic_cache_tool/CacheTool.cc
@@ -290,7 +290,7 @@ Stripe::InitializeMeta()
_meta[i][j].magic = StripeMeta::MAGIC;
_meta[i][j].version.ink_major = ts::CACHE_DB_MAJOR_VERSION;
_meta[i][j].version.ink_minor = ts::CACHE_DB_MINOR_VERSION;
- _meta[i][j].agg_pos = _meta[i][j].last_write_pos = _meta[i][j].write_pos
= this->_start;
+ _meta[i][j].agg_pos = _meta[i][j].last_write_pos = _meta[i][j].write_pos
= this->_content;
_meta[i][j].phase = _meta[i][j].cycle = _meta[i][j].sync_serial =
_meta[i][j].write_serial = _meta[i][j].dirty = 0;
_meta[i][j].create_time = time(nullptr);
_meta[i][j].sector_size = DEFAULT_HW_SECTOR_SIZE;
--
To stop receiving notification emails like this one, please contact
[email protected].