vendor: boltdb/bolt v1.3.0 for Go 1.7

In case somebody wants to build this branch with Go 1.7
This commit is contained in:
Gyu-Ho Lee
2016-08-18 14:41:34 -07:00
parent ec576ee5ac
commit 6a1e3e73dd
5 changed files with 32 additions and 13 deletions

View File

@ -201,6 +201,11 @@ func (n *node) write(p *page) {
}
p.count = uint16(len(n.inodes))
// Stop here if there are no items to write.
if p.count == 0 {
return
}
// Loop over each item and write it to the page.
b := (*[maxAllocSize]byte)(unsafe.Pointer(&p.ptr))[n.pageElementSize()*len(n.inodes):]
for i, item := range n.inodes {