- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit1e87198
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 parent3a45321 commit1e87198
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
835 | 835 |
| |
836 | 836 |
| |
837 | 837 |
| |
838 |
| - | |
| 838 | + | |
839 | 839 |
| |
840 | 840 |
| |
841 | 841 |
| |
|
0 commit comments
Comments
(0)