- Once again wasted time tracking down a hit ratio problem, eventually
re-learning that storeDirSelectSwapDirLeastLoad() could return -1
causing a swapout to fail. This patch logs those cases to store.log.
/*
- * $Id: enums.h,v 1.169 2000/07/18 06:16:41 wessels Exp $
+ * $Id: enums.h,v 1.170 2000/07/21 06:06:22 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
STORE_LOG_CREATE,
STORE_LOG_SWAPIN,
STORE_LOG_SWAPOUT,
- STORE_LOG_RELEASE
+ STORE_LOG_RELEASE,
+ STORE_LOG_SWAPOUTFAIL
};
typedef enum {
/*
- * $Id: store_log.cc,v 1.17 2000/06/25 22:28:43 wessels Exp $
+ * $Id: store_log.cc,v 1.18 2000/07/21 06:06:22 wessels Exp $
*
* DEBUG: section 20 Storage Manager Logging Functions
* AUTHOR: Duane Wessels
"CREATE",
"SWAPIN",
"SWAPOUT",
- "RELEASE"
+ "RELEASE",
+ "SO_FAIL",
};
static Logfile *storelog = NULL;
/*
- * $Id: store_swapout.cc,v 1.73 2000/06/27 22:06:05 hno Exp $
+ * $Id: store_swapout.cc,v 1.74 2000/07/21 06:06:22 wessels Exp $
*
* DEBUG: section 20 Storage Manager Swapout Functions
* AUTHOR: Duane Wessels
e->swap_status = SWAPOUT_NONE;
cbdataFree(c);
xfree(buf);
+ storeLog(STORE_LOG_SWAPOUTFAIL, e);
return;
}
storeLockObject(e); /* Don't lock until after create, or the replacement