Revision: 14470
Author: adrian.chadd
Date: Sun Mar 21 21:04:29 2010
Log: Commit LOG_PROGRESS logging for COSS.
http://code.google.com/p/lusca-cache/source/detail?r=14470
Modified:
/branches/LUSCA_HEAD/src/fs/coss/store_rebuild_coss.c
=======================================
--- /branches/LUSCA_HEAD/src/fs/coss/store_rebuild_coss.c Tue Jul 28
03:42:27 2009
+++ /branches/LUSCA_HEAD/src/fs/coss/store_rebuild_coss.c Sun Mar 21
21:04:29 2010
@@ -195,6 +195,7 @@
/* squidaioinfo_t *aioinfo = (squidaioinfo_t *) sd->fsdata; */
int r, i;
storeSwapLogData s;
+ int t, p;
assert(fd == rb->helper.r_fd);
debug(47, 5) ("storeCossRebuildHelperRead: %s: ready for helper
read\n", sd->path);
@@ -219,8 +220,10 @@
case SWAP_LOG_VERSION:
break;
case SWAP_LOG_PROGRESS:
- storeRebuildProgress(rb->sd->index,
- ((storeSwapLogProgress *)(&s))->total,
((storeSwapLogProgress *)(&s))->progress);
+ t = ((storeSwapLogProgress *)(&s))->total;
+ p = ((storeSwapLogProgress *)(&s))->progress;
+ debug(47, 1) ("storeAufsRebuildHelperRead: %s: SWAP_LOG_PROGRESS:
total %d objects, progress %d objects\n", sd->path, t, p);
+ storeRebuildProgress(rb->sd->index, t, p);
break;
case SWAP_LOG_COMPLETED:
debug(47, 1) (" %s: completed rebuild\n",
sd->path);
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.