]> git.ipfire.org Git - thirdparty/squid.git/commit
Keep anchor.basics.swap_file_sz in sync with slice sizes.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 27 Jul 2013 17:19:29 +0000 (11:19 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 27 Jul 2013 17:19:29 +0000 (11:19 -0600)
commit76ba3c8a5ac5e04aa6acbedc7c314575ecffb440
tree5181272a2a1e7a1fc895ffb1f600d72be0c0da2b
parentfa6d2c655fb884b65eb2c2c044a81233a987a06f
Keep anchor.basics.swap_file_sz in sync with slice sizes.

The old code updated anchor.basics.swap_file_sz _after_ copying all of the
available data into shared memory. An exception in the copying loop (e.g., the
map is out of available slots) could prevent that update. For another worker,
the entry would then appear to be fully completed (no writer, last slice size
stable, and last slice poiner is -1) and that worker would assert due to
anchor.basics.swap_file_sz mismatching the sum of slice sizes.
src/MemStore.cc