free adds the node's underlying page to the freelist.
()
| 492 | |
| 493 | // free adds the node's underlying page to the freelist. |
| 494 | func (n *node) free() { |
| 495 | if n.pgid != 0 { |
| 496 | n.bucket.tx.db.freelist.Free(n.bucket.tx.meta.Txid(), n.bucket.tx.page(n.pgid)) |
| 497 | n.pgid = 0 |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | // dump writes the contents of the node to STDERR for debugging purposes. |
| 502 | /* |