diff options
Diffstat (limited to 'meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch')
-rw-r--r-- | meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch b/meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch new file mode 100644 index 0000000000..2a7bc43cdb --- /dev/null +++ b/meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 73e8dd479420bb90a46cf9d99ca62289fab3677e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 23 Sep 2017 08:43:58 -0700 | ||
4 | Subject: [PATCH] use a smaller constant that hopefully works the same. | ||
5 | |||
6 | This test uses a constant that is too big for 32bit systems. | ||
7 | |||
8 | Backported from | ||
9 | https://github.com/boltdb/bolt/issues/645 | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | Upstream-Status: Submitted | ||
14 | |||
15 | vendor/github.com/boltdb/bolt/db_test.go | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/vendor/github.com/boltdb/bolt/db_test.go b/vendor/github.com/boltdb/bolt/db_test.go | ||
19 | index 3034d4f4..035f5a5f 100644 | ||
20 | --- a/vendor/github.com/boltdb/bolt/db_test.go | ||
21 | +++ b/vendor/github.com/boltdb/bolt/db_test.go | ||
22 | @@ -370,7 +370,7 @@ func TestDB_Open_InitialMmapSize(t *testing.T) { | ||
23 | path := tempfile() | ||
24 | defer os.Remove(path) | ||
25 | |||
26 | - initMmapSize := 1 << 31 // 2GB | ||
27 | + initMmapSize := 1 << 29 // 512MB | ||
28 | testWriteSize := 1 << 27 // 134MB | ||
29 | |||
30 | db, err := bolt.Open(path, 0666, &bolt.Options{InitialMmapSize: initMmapSize}) | ||
31 | -- | ||
32 | 2.14.1 | ||
33 | |||