- Notifications
You must be signed in to change notification settings - Fork5.3k
Commitcd38b7e
committed
Assert that cutoffs are provided if freezing will be attempted
heap_page_prune_and_freeze() requires the caller to initializePruneFreezeParams->cutoffs so that the function can correctly evaluatewhether tuples should be frozen. This requirement previously existedonly in comments and was easy to miss, especially after “cutoffs” wasconverted from a direct function parameter to a field of the newlyintroduced PruneFreezeParams struct (added in1937ed7). Adding anassert makes this requirement explicit and harder to violate.Also, fix a minor typo while we're at it.Author: Chao Li <li.evan.chao@gmail.com>Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>Discussion:https://postgr.es/m/0AC177F5-5E26-45EE-B273-357C51212AC5%40gmail.com1 parent3b9c118 commitcd38b7e
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
507 | 510 | | |
508 | 511 | | |
509 | 512 | | |
| |||
0 commit comments
Comments
(0)