From 6bdfadf4a9a2f7c8082560381d28b3005efbf883 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 3 Mar 2017 15:57:54 +0800 Subject: [PATCH] fix broken caused by boltdb in mips/mipsle (#1107) --- 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 0000000000..1c06342ea7 --- /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 0000000000..d5af4d128e --- /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