[
https://issues.apache.org/jira/browse/TS-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289910#comment-13289910
]
Zhao Yongming commented on TS-1289:
-----------------------------------
{code}
commit bf70a5e0613b278c386608ce6f1902eb5b014d05
Author: Zhao Yongming <[email protected]>
Date: Wed Jun 6 10:36:17 2012 +0800
TS-1289 stats codes mess up when disk fail
diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index 864918a..7ebb99d 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -1685,13 +1685,13 @@ AIO_Callback_handler::handle_disk_failure(int event,
void *data) {
if (d->fd == gvol[p]->fd) {
total_dir_delete += gvol[p]->buckets * gvol[p]->segments *
DIR_DEPTH;
used_dir_delete += dir_entries_used(gvol[p]);
- total_bytes_delete = gvol[p]->len - vol_dirlen(gvol[p]);
+ total_bytes_delete += gvol[p]->len - vol_dirlen(gvol[p]);
}
}
RecIncrGlobalRawStat(cache_rsb, cache_bytes_total_stat,
-total_bytes_delete);
- RecIncrGlobalRawStat(cache_rsb, cache_bytes_total_stat,
-total_dir_delete);
- RecIncrGlobalRawStat(cache_rsb, cache_bytes_total_stat,
-cache_direntries_used_stat);
+ RecIncrGlobalRawStat(cache_rsb, cache_direntries_total_stat,
-total_dir_delete);
+ RecIncrGlobalRawStat(cache_rsb, cache_direntries_used_stat,
-used_dir_delete);
if (theCache) {
rebuild_host_table(theCache);
{code}
> stats codes mess up when disk fail
> ----------------------------------
>
> Key: TS-1289
> URL: https://issues.apache.org/jira/browse/TS-1289
> Project: Traffic Server
> Issue Type: Bug
> Components: Cache, Stats
> Affects Versions: 3.3.0
> Reporter: Zhao Yongming
> Assignee: Zhao Yongming
> Fix For: 3.3.0
>
>
> patch talks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira