diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-21 13:46:12 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-21 13:46:12 -0600 |
commit | 7432bc341f8bbfc73eefc3278f2698e712e516b8 (patch) | |
tree | 33897520b5bd98383fe3b17cc9090e931c690b9c /page.go | |
parent | Merge pull request #171 from Shopify/tx_copy (diff) | |
parent | Fix freelist allocate(). (diff) | |
download | dedo-7432bc341f8bbfc73eefc3278f2698e712e516b8.tar.gz dedo-7432bc341f8bbfc73eefc3278f2698e712e516b8.tar.xz |
Merge pull request #169 from benbjohnson/allocation
Fix freelist allocation direction.
Diffstat (limited to 'page.go')
-rw-r--r-- | page.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -128,3 +128,9 @@ type PageInfo struct { Count int OverflowCount int } + +type pgids []pgid + +func (s pgids) Len() int { return len(s) } +func (s pgids) Swap(i, j int) { s[i], s[j] = s[j], s[i] } +func (s pgids) Less(i, j int) bool { return s[i] < s[j] } |