]> git.ipfire.org Git - thirdparty/squid.git/commit
Re-enabled on-disk collapsing of entries after fixing related code.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 29 Jul 2013 00:43:55 +0000 (18:43 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 29 Jul 2013 00:43:55 +0000 (18:43 -0600)
commit5296bbd9b4eaee1522df1ff0e734c09eab532402
tree7ccf5547f66ec2ccaa298e5de546670f762828f1
parent3587dde2ad87863cc9870e8f0556ce31a37cabc8
Re-enabled on-disk collapsing of entries after fixing related code.

Since we started writing partial entries, we cannot rely on negative sidNext
marking the end of the slice/write sequence. Added a WriteRequest::eof field
to signal that end explicitly.

Do not leak db slices when write fails or IoState is closed before the write
succeeds.

Handle store client requesting an offset we have not stored yet. This might
happen for collapsed hits (and also if the client is buggy). May need more
work to slow the reader down.

Do not update various shared stats until the corresponding slot is written.
src/fs/rock/RockIoRequests.cc
src/fs/rock/RockIoRequests.h
src/fs/rock/RockIoState.cc
src/fs/rock/RockIoState.h
src/fs/rock/RockSwapDir.cc