]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 5134: assertion failed: Transients.cc:221: "old == e" (#958)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 9 Jan 2022 08:44:12 +0000 (03:44 -0500)
committerGitHub <noreply@github.com>
Sun, 9 Jan 2022 08:44:12 +0000 (21:44 +1300)
commit8ac83ed55d8f4acb58e8e98d3ba09f2ee59669f2
tree03defb81cbcd10dbe8965424a620503b4a583092
parent832aa256c6e9ed5781a0752b4b833117f6829645
Bug 5134: assertion failed: Transients.cc:221: "old == e" (#958)

Make sure the StoreMap anchor we open for reading has our key (and not
just happens to be at our hash position). Prior to this change, two
openForReadingAt() calls were missing a sameKey() post-call check due to
a buggy backport (v5 commit ec50061; mis-attributed to me).

Now the sameKey() check is integrated into the openForReadingAt() method
itself, as was already done in master/v6 since commit b2aca62.
src/ipc/StoreMap.cc
src/ipc/StoreMap.h