From a13b0a9f5ea78270c4c614865407442748e349be Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 18 十月 2022 12:52:51 +0800
Subject: [PATCH] fix armv7 init
---
bolt/bolt_unix.go | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bolt/bolt_unix.go b/bolt/bolt_unix.go
index cad62dd..23111f8 100644
--- a/bolt/bolt_unix.go
+++ b/bolt/bolt_unix.go
@@ -3,7 +3,6 @@
package bolt
import (
- "fmt"
"os"
"syscall"
"time"
@@ -53,9 +52,10 @@
}
// Advise the kernel that the mmap is accessed randomly.
- if err := madvise(b, syscall.MADV_RANDOM); err != nil {
- return fmt.Errorf("madvise: %s", err)
- }
+ madvise(b, syscall.MADV_RANDOM)
+ //if err := madvise(b, syscall.MADV_RANDOM); err != nil {
+ // return fmt.Errorf("madvise: %s", err)
+ //}
// Save the original byte slice and convert to a byte array pointer.
db.dataref = b
--
Gitblit v1.8.0