A shutting down Squid deletes locked StoreEntry objects, which may trigger
deletion of Rock::IoState that is still writing to disk. We should fix the
shutdown sequence. Meanwhile, the Rock::IoState code does not need to mislead
admins with an assert.
// The dir map entry may still be open for reading at the point because
// the map entry lock is associated with StoreEntry, not IoState.
// assert(!readableAnchor_);
- assert(!writeableAnchor_);
+ assert(shutting_down || !writeableAnchor_);
if (callback_data)
cbdataReferenceDone(callback_data);