]> git.ipfire.org Git - thirdparty/squid.git/commit
Simplified MemObject::write() API.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 8 Jun 2013 00:56:36 +0000 (18:56 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 8 Jun 2013 00:56:36 +0000 (18:56 -0600)
commit55759ffbbd3e87ef532266db000bbaebc8388435
tree0065587f38ad8c35aa6191b8d8abbf0d304f3abc
parentce49546edf8ac2286db4c5989f2c00c020c69ff7
Simplified MemObject::write() API.

The API required a callback, but the call was always synchronous and the
required callback mechanism could not reliably support an async call anyway.

The method adjusted the buffer offset to become relative to headers rather
than body. While the intent to separate headers from body is noble, none of
the existing caches support that separation, and a different API will be
needed to support it correctly anyway. For now, let's reduce the number of
special cases and offset manipulations.
src/MemObject.cc
src/MemObject.h
src/store.cc
src/store_client.cc