Closed ahrtr closed 2 months ago
line 194, it tries to free a page which was just allocated by itself. You can do this in a unit test, but actually it will never happen in real production use case.
f.free(common.Txid(2), common.NewPage(allocate, common.LeafPageFlag, 0, 1))
I'm not saying it's a production issue, I was merely testing all the branches ;-) If it's not allowed, the panic is the correct way to continue with this.
/lgtm
Just rebased this PR, PTAL @fuweid @tjungblu
still looks good!
/lgtm
Just rebased this PR, PTAL @fuweid @tjungblu
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ahrtr, fuweid
The full list of commands accepted by this bot can be found here.
The pull request process is described here
A writing TXN should never free a page which was allocated by itself.
Link to https://github.com/etcd-io/bbolt/issues/789