]> git.ipfire.org Git - thirdparty/squid.git/commit
Adjusted StoreIOState::write() API to allow callers detect write errors.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 7 Jan 2013 17:54:27 +0000 (10:54 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 7 Jan 2013 17:54:27 +0000 (10:54 -0700)
commit90e8b325c06d91c5623eb374f5ec2380a879bdc1
tree6673041121384ceabba2ccf32fa818864858aab1
parent189949922411cc0519ff16b7a0c962be19c49aae
Adjusted StoreIOState::write() API to allow callers detect write errors.

The errors are reported without these changes, but only via callbacks, some of
which may be asynchronous. Callers such as doPages() would keep calling
write() after the failure. It is probably best to quit early instead of
ignoring "post-error" state in StoreIOState::write().

Added StoreIOState::write() API description.
src/StoreIOState.h
src/fs/coss/store_coss.h
src/fs/coss/store_io_coss.cc
src/fs/ufs/UFSStoreState.cc
src/fs/ufs/UFSStoreState.h
src/store_swapout.cc