if (!e.mem_obj || e.mem_obj->xitTable.index < 0 ||
!Store::Root().transientReaders(e)) {
- debugs(17, 7, "not broadcasting " << e << " changes to nobody");
+ debugs(17, 7, "nobody reads " << e);
return;
}
bool
MemObject::readAheadPolicyCanRead() const
{
- return endOffset() - getReply()->hdr_sz < lowestMemReaderOffset() + Config.readAheadGap;
+ const bool canRead = endOffset() - getReply()->hdr_sz <
+ lowestMemReaderOffset() + Config.readAheadGap;
+
+ if (!canRead) {
+ debugs(19, 9, "no: " << endOffset() << '-' << getReply()->hdr_sz <<
+ " < " << lowestMemReaderOffset() << '+' << Config.readAheadGap);
+ }
+
+ return canRead;
}
void