diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-07 10:37:50 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-07 10:37:50 -0600 |
commit | 0966dde0d44d5b42b132e3f2b8e8c6e3dc2c93fe (patch) | |
tree | 8f876af64e7b40323e71f334a499a347cbb9fcc4 /freelist.go | |
parent | Add inline bucket support. (diff) | |
download | dedo-0966dde0d44d5b42b132e3f2b8e8c6e3dc2c93fe.tar.gz dedo-0966dde0d44d5b42b132e3f2b8e8c6e3dc2c93fe.tar.xz |
Fix bucket free.
Diffstat (limited to 'freelist.go')
-rw-r--r-- | freelist.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/freelist.go b/freelist.go index 6c527fe..ebe2810 100644 --- a/freelist.go +++ b/freelist.go @@ -1,7 +1,6 @@ package bolt import ( - "fmt" "sort" "unsafe" ) @@ -64,7 +63,7 @@ func (f *freelist) free(txid txid, p *page) { } f.pending[txid] = ids - f.check() // DEBUG ONLY: + // DEBUG ONLY: f.check() } // release moves all page ids for a transaction id (or older) to the freelist. @@ -115,6 +114,7 @@ func (f *freelist) write(p *page) { // check verifies there are no double free pages. // This is slow so it should only be used while debugging. // If errors are found then a panic invoked. +/* func (f *freelist) check() { var lookup = make(map[pgid]txid) for _, id := range f.ids { @@ -132,6 +132,7 @@ func (f *freelist) check() { } } } +*/ type reverseSortedPgids []pgid |