From c50991e1b26b999ed28d03f65dfa89a4dbc57058 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 3 Mar 2017 11:19:44 +0800 Subject: [PATCH] fix broken caused by boltdb in mips/mipsle --- vendor/github.com/boltdb/bolt/bolt_mips.go | 11 +++++++++++ vendor/github.com/boltdb/bolt/bolt_mipsle.go | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 vendor/github.com/boltdb/bolt/bolt_mips.go create mode 100644 vendor/github.com/boltdb/bolt/bolt_mipsle.go diff --git a/vendor/github.com/boltdb/bolt/bolt_mips.go b/vendor/github.com/boltdb/bolt/bolt_mips.go new file mode 100644 index 0000000000000..1c06342ea74d2 --- /dev/null +++ b/vendor/github.com/boltdb/bolt/bolt_mips.go @@ -0,0 +1,11 @@ +// +build mips +package bolt + +// maxMapSize represents the largest mmap size supported by Bolt. +const maxMapSize = 0x40000000 // 1GB + +// maxAllocSize is the size used when creating array pointers. +const maxAllocSize = 0xFFFFFFF + +// brokenUnaligned Are unaligned load/stores broken on this arch? +var brokenUnaligned = false diff --git a/vendor/github.com/boltdb/bolt/bolt_mipsle.go b/vendor/github.com/boltdb/bolt/bolt_mipsle.go new file mode 100644 index 0000000000000..d5af4d128ec7b --- /dev/null +++ b/vendor/github.com/boltdb/bolt/bolt_mipsle.go @@ -0,0 +1,11 @@ +// +build mipsle +package bolt + +// maxMapSize represents the largest mmap size supported by Bolt. +const maxMapSize = 0x40000000 // 1GB + +// maxAllocSize is the size used when creating array pointers. +const maxAllocSize = 0xFFFFFFF + +// brokenUnaligned Are unaligned load/stores broken on this arch? +var brokenUnaligned = false