summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/boltdb
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-03-03 15:57:54 +0800
committerGitHub <noreply@github.com>2017-03-03 15:57:54 +0800
commit6bdfadf4a9a2f7c8082560381d28b3005efbf883 (patch)
tree288be75dfbce4f4a7c62c9fb02b114451a789825 /vendor/github.com/boltdb
parentef13bbaf7de048ecf71f1ca5f15818e417a744b3 (diff)
downloadgitea-6bdfadf4a9a2f7c8082560381d28b3005efbf883.tar.gz
gitea-6bdfadf4a9a2f7c8082560381d28b3005efbf883.zip
fix broken caused by boltdb in mips/mipsle (#1107)
Diffstat (limited to 'vendor/github.com/boltdb')
-rw-r--r--vendor/github.com/boltdb/bolt/bolt_mips.go11
-rw-r--r--vendor/github.com/boltdb/bolt/bolt_mipsle.go11
2 files changed, 22 insertions, 0 deletions
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