- Notifications
You must be signed in to change notification settings - Fork28
Commit9d4e566
committed
Remove broken and useless entry-count printing in HASH_DEBUG code.
init_htab(), with #define HASH_DEBUG, prints a bunch of hashtableparameters. It used to also print nentries, but commit44ca402 changedthat to "hash_get_num_entries(hctl)", which is wrong (the parameter shouldbe "hashp").Rather than correct the coding, though, let's just remove that field fromthe printout. The table must be empty, since we just finished buildingit, so expensively calculating the number of entries is rather pointless.Moreover hash_get_num_entries makes assumptions (about not needing locks)which we could do without in debugging code.Noted by Choi Doo-Won in bug #14764. Back-patch to 9.6 where thefaulty code was introduced.Discussion:https://postgr.es/m/20170802032353.8424.12274@wrigleys.postgresql.org1 parentcf65201 commit9d4e566
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
703 | 703 |
| |
704 | 704 |
| |
705 | 705 |
| |
706 |
| - | |
| 706 | + | |
707 | 707 |
| |
708 | 708 |
| |
709 | 709 |
| |
| |||
712 | 712 |
| |
713 | 713 |
| |
714 | 714 |
| |
715 |
| - | |
716 |
| - | |
| 715 | + | |
717 | 716 |
| |
718 | 717 |
| |
719 | 718 |
| |
|
0 commit comments
Comments
(0)