diff options
author | David Rowley <drowley@postgresql.org> | 2021-04-03 10:41:43 +1300 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2021-04-03 10:41:43 +1300 |
commit | 1267d9862fc6a4f8cdc0ca38d1988b61f39da585 (patch) | |
tree | cda60dbaf34bb152447521cff3d934708c27a721 /src/backend/utils/adt/misc.c | |
parent | 84bc2b17523ef485f102be7f00f7affb88f00f18 (diff) | |
download | postgresql-1267d9862fc6a4f8cdc0ca38d1988b61f39da585.tar.gz postgresql-1267d9862fc6a4f8cdc0ca38d1988b61f39da585.zip |
Remove useless Asserts in Result Cache code
Testing if an unsigned variable is >= 0 is pretty pointless.
There's likely enough code in remove_cache_entry() to verify the cache
memory accounting is correct in assert enabled builds. These Asserts
were not adding much extra cover, even if they had been checking >= 0 on a
signed variable.
Reported-by: Andres Freund
Discussion: https://postgr.es/m/20210402204734.6mo3nfacnljlicgn@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/adt/misc.c')
0 files changed, 0 insertions, 0 deletions