Ticket #217 (closed defect: fixed)
BTreeCounters does not track bytes released.
|Reported by:||thompsonbry||Owned by:||thompsonbry|
The BTreeCounters class tracks the #of bytes written on each index, but it does not track the #of bytes associated with records which have been deleted. Thus, it is not possible to compute the #of bytes for only the current records on the B+Tree. This means that estimates of the average page size based on the current #of nodes and leaves and bytes written are incorrect, at least for the RWStore.
Add a counter for bytesReleased and update logic which is using bytesWritten under the assumption that it reflects the WORM architecture, which does not recycle, and the scale-out architecture, which recycles by deleting entire files.