Tony Finch
9d7b224201
Fix change 6093 which broke rbtdb when it grew too large
...
I misunderstood the purpose of the `heap_index` rdataset header
member; I thought it identified which heap to use, and could therefore
be smaller, the same size as `locknum` indexes. But in fact it is a
position within a heap, so it needs to be able to count up to the
total number of rdatasets in the rbtdb.
So this changes `heap_index` from `uint16_t` back to `unsigned int`.
To avoid re-embiggening the rdatasetheader, shrink the `count` member
from `uint32` to `uint16`. The `count` is used to rotate RRsets in
`dns_rdataset_towiresorted()`, so 16 bits is more than large enough.
This change also means we no longer need to avoid colliding with
`DNS_RDATASET_COUNT_UNDEFINED` i.e. UINT32_MAX.
Closes #3862
2023-02-14 18:19:46 +00:00
..
2023-02-10 09:52:27 -08:00
2023-02-06 13:26:36 +00:00
2023-01-30 11:52:53 +01:00
2022-11-29 08:54:34 +01:00
2023-02-06 13:22:30 +00:00
2023-01-24 17:57:16 +00:00
2023-01-09 12:15:21 -08:00
2023-02-06 13:26:36 +00:00
2023-02-07 23:48:22 -08:00
2022-11-29 08:54:34 +01:00
2022-12-07 22:20:02 +00:00
2022-11-29 13:48:33 -08:00
2022-11-29 08:54:34 +01:00
2023-02-06 15:03:58 -08:00
2023-02-01 11:22:59 +01:00
2023-02-07 12:37:47 -08:00
2022-12-20 19:13:48 +01:00
2022-11-29 08:54:34 +01:00
2023-01-09 15:19:37 +01:00
2023-01-09 19:30:49 +01:00
2022-11-29 08:54:34 +01:00
2023-02-09 18:00:13 +00:00
2022-11-29 08:54:34 +01:00
2023-01-20 14:45:30 +00:00
2023-02-06 13:26:36 +00:00
2022-11-29 08:54:34 +01:00
2023-01-09 12:15:21 -08:00
2023-02-06 13:26:36 +00:00
2022-11-29 08:54:34 +01:00
2023-01-27 15:07:26 +00:00
2022-12-20 19:13:48 +01:00
2022-12-23 13:36:50 +00:00
2023-02-06 13:26:36 +00:00
2023-02-13 11:50:59 -08:00
2023-02-06 13:26:36 +00:00
2023-02-06 13:26:36 +00:00
2022-11-29 08:54:34 +01:00
2023-02-06 13:26:36 +00:00
2022-12-07 22:20:02 +00:00
2022-12-20 19:13:48 +01:00
2023-02-07 12:29:34 +00:00
2023-01-09 19:33:48 +01:00
2023-01-09 15:20:49 +01:00
2023-01-09 19:56:31 +01:00
2022-11-29 08:54:34 +01:00
2023-01-25 21:04:27 +02:00
2022-11-29 08:54:34 +01:00
2023-01-09 12:15:21 -08:00
2022-11-29 08:54:34 +01:00
2023-02-06 13:22:30 +00:00
2023-02-14 18:19:46 +00:00
2022-11-29 08:54:34 +01:00
2023-02-06 13:26:36 +00:00
2022-11-29 08:54:34 +01:00
2023-02-09 08:29:43 +11:00
2022-11-29 08:54:34 +01:00
2023-01-09 12:15:21 -08:00
2023-01-09 12:15:21 -08:00
2023-02-11 20:21:47 +00:00
2023-02-06 13:22:30 +00:00
2022-12-07 22:20:02 +00:00
2023-02-14 09:12:53 +00:00
2022-12-07 22:20:02 +00:00
2022-11-29 08:54:34 +01:00
2022-12-07 22:20:02 +00:00
2022-12-07 22:20:02 +00:00
2022-11-29 08:54:34 +01:00
2022-11-29 08:54:34 +01:00
2022-11-29 08:54:34 +01:00
2022-12-23 11:10:11 +02:00
2022-11-29 08:54:34 +01:00
2022-12-07 22:20:02 +00:00
2022-11-29 08:54:34 +01:00
2023-01-20 14:45:30 +00:00
2023-01-19 10:24:08 +00:00
2023-02-14 10:10:05 +11:00
2022-11-29 08:54:34 +01:00
2022-12-07 22:20:02 +00:00
2022-11-29 08:54:34 +01:00