File: Bug%23849663_Fix_32bit_failures.patch

package info (click to toggle)
golang-github-boltdb-bolt 1.3.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates, bullseye
  • size: 616 kB
  • sloc: makefile: 19
file content (17 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: This test uses a constant that is too big for 32bit systems.
 The patch uses a smaller constant that hopefully works the same.
Author: Martín Ferrari <tincho@debian.org>
Origin: vendor, 
Bug: https://github.com/boltdb/bolt/issues/645
Last-Update: 2017-01-06
--- a/db_test.go
+++ b/db_test.go
@@ -531,7 +531,7 @@
 	path := tempfile()
 	defer os.Remove(path)
 
-	initMmapSize := 1 << 31  // 2GB
+	initMmapSize := 1 << 29  // .5GB
 	testWriteSize := 1 << 27 // 134MB
 
 	db, err := bolt.Open(path, 0666, &bolt.Options{InitialMmapSize: initMmapSize})