forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1267d98
committed
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 cachememory accounting is correct in assert enabled builds. These Assertswere not adding much extra cover, even if they had been checking >= 0 on asigned variable.Reported-by: Andres FreundDiscussion:https://postgr.es/m/20210402204734.6mo3nfacnljlicgn@alap3.anarazel.de1 parent84bc2b1 commit1267d98
1 file changed
+0
-4
lines changedLines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
286 | 286 |
| |
287 | 287 |
| |
288 | 288 |
| |
289 |
| - | |
290 |
| - | |
291 | 289 |
| |
292 | 290 |
| |
293 | 291 |
| |
| |||
346 | 344 |
| |
347 | 345 |
| |
348 | 346 |
| |
349 |
| - | |
350 |
| - | |
351 | 347 |
| |
352 | 348 |
| |
353 | 349 |
| |
|
0 commit comments
Comments
(0)