The unified diff between revisions [816b792b..] and [6d9381f5..] is displayed below. It can also be downloaded as a raw diff.
#
#
# patch "src/store_io.c"
# from [95f7644af900412f7c758eb99b822ef82a559d46]
# to [84709eba66ebe42416b22fcea47946e4b37114c8]
#
============================================================
--- src/store_io.c 95f7644af900412f7c758eb99b822ef82a559d46
+++ src/store_io.c 84709eba66ebe42416b22fcea47946e4b37114c8
@@ -10,7 +10,8 @@ static struct {
struct {
int calls;
int success;
- int fail;
+ int open_fail;
+ int loadav_fail;
} open;
} store_io_stats;
@@ -71,12 +72,12 @@ storeOpen(StoreEntry * e, STFNCB * file_
SwapDir *SD = &Config.cacheSwap.swapDirs[e->swap_dirn];
store_io_stats.open.calls++;
if (SD->checkload(SD, ST_OP_OPEN) == 0) {
- store_io_stats.open.fail++;
+ store_io_stats.open.loadav_fail++;
return NULL;
}
sio = SD->obj.open(SD, e, file_callback, callback, callback_data);
if (sio == NULL) {
- store_io_stats.open.fail++;
+ store_io_stats.open.open_fail++;
} else {
store_io_stats.open.success++;
}
@@ -134,5 +135,6 @@ storeIOStats(StoreEntry * sentry)
storeAppendPrintf(sentry, "create.success %d\n", store_io_stats.create.success);
storeAppendPrintf(sentry, "open.calls %d\n", store_io_stats.open.calls);
storeAppendPrintf(sentry, "open.success %d\n", store_io_stats.open.success);
- storeAppendPrintf(sentry, "open.fail %d\n", store_io_stats.open.fail);
+ storeAppendPrintf(sentry, "open.loadav_fail %d\n", store_io_stats.open.loadav_fail);
+ storeAppendPrintf(sentry, "open.open_fail %d\n", store_io_stats.open.open_fail);
}