- Notifications
You must be signed in to change notification settings - Fork28
Commit0d68ad3
committed
Fix division by zero in _bt_vacuum_needs_cleanup()
Checks inside _bt_vacuum_needs_cleanup() allow division by zero to happen whenmetad->btm_last_cleanup_num_heap_tuples == 0. This commit adjusts theexpression so that no division by zero might happen.Reported-by: Piotr StefaniakDiscussion:https://postgr.es/m/DB8PR03MB5931C41F7787A95313F08322F22A0%40DB8PR03MB5931.eurprd03.prod.outlook.comReviewed-by: Masahiko SawadaBackpatch-through: 111 parent5129026 commit0d68ad3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
836 | | - | |
| 836 | + | |
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| |||
0 commit comments
Comments
(0)