etcd-io / bbolt

An embedded key/value database for Go.
https://go.etcd.io/bbolt
MIT License
8.32k stars 644 forks source link

Move method freePages into freelist.go #783

Closed ahrtr closed 5 months ago

ahrtr commented 5 months ago

The motivation is to get all freelist related logic included in freelist.go. We are going to introduce freelist interface in the next step.

The freePages is the most important logic of freelist management, but it's outside of freelist management. Moving it into freelist.go is the base for introducing freelist interface and introduce more dedicated test cases.

cc @tjungblu @fuweid @ivanvc

ahrtr commented 5 months ago

Link to https://github.com/etcd-io/bbolt/issues/773