]> git.ipfire.org Git - thirdparty/squid.git/commit
Cleanup: remove unsused fd_debug_t and fdd_table
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 4 Feb 2017 16:30:49 +0000 (05:30 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 4 Feb 2017 16:30:49 +0000 (05:30 +1300)
commit4a5d9ea503e0760dbc9b93221a85ddcd22d0332e
tree21697e40e282e106563a06967fbc053709f54aeb
parenta7d40d52ae86020fec3e5bbecad448b9ade51f65
Cleanup: remove unsused fd_debug_t and fdd_table

This tables used to store the file and line location where each FD was
closed from, but never read for any reports or logs.

Make the cache.log debugging for comm_close display that information
instead of storing it in memory. This way when debug of the comm layer
is enabled the closure information for each FD open/close cycle is
recorded and not just the place of last closure.

Also we save a few hundred KB of memory this table was using and all the
CPU cycles used to maintain it when debugging was not needed.
src/comm.cc
src/comm/TcpAcceptor.cc
src/comm/comm_internal.h