]> git.ipfire.org Git - thirdparty/squid.git/commit
Use Rock::IoState::writeableAnchor_ to detect rock entries open for writing.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 10 Jul 2013 00:41:01 +0000 (18:41 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 10 Jul 2013 00:41:01 +0000 (18:41 -0600)
commit49769258cf5250d789ab2aca803830d92ceadaa5
tree064306f4663bd1730df3b97590bd44d26948a3a5
parente5433948164cec8919bb0337bf92ab4a0f94bc73
Use Rock::IoState::writeableAnchor_ to detect rock entries open for writing.

Just e.mem_obj->swapout.sio presence is not reliable enough because we
may switch from writing to reading while the [writing] sio is still around.

More explicitly disabled on-disk collapsing of entries. The relevant code is
unstable under load [at least when combined with memory caching]. We were not
calling Ipc::StoreMap::startAppending() before so we probably did not fully
disk-collapsed entries before these temporary changes.

Added an XXX to mark an assert() that may fail if we allow on-disk collapsing.
src/fs/rock/RockIoState.cc
src/fs/rock/RockSwapDir.cc