File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 99 "unsafe"
1010
1111 "golang.org/x/sys/unix"
12+
13+ "go.etcd.io/bbolt/internal/common"
1214)
1315
1416// flock acquires an advisory lock on a file descriptor.
@@ -69,7 +71,7 @@ func mmap(db *DB, sz int) error {
6971
7072 // Save the original byte slice and convert to a byte array pointer.
7173 db .dataref = b
72- db .data = (* [maxMapSize ]byte )(unsafe .Pointer (& b [0 ]))
74+ db .data = (* [common . MaxMapSize ]byte )(unsafe .Pointer (& b [0 ]))
7375 db .datasz = sz
7476 return nil
7577}
Original file line number Diff line number Diff line change 77 "unsafe"
88
99 "golang.org/x/sys/unix"
10+
11+ "go.etcd.io/bbolt/internal/common"
1012)
1113
1214// flock acquires an advisory lock on a file descriptor.
@@ -69,7 +71,7 @@ func mmap(db *DB, sz int) error {
6971
7072 // Save the original byte slice and convert to a byte array pointer.
7173 db .dataref = b
72- db .data = (* [maxMapSize ]byte )(unsafe .Pointer (& b [0 ]))
74+ db .data = (* [common . MaxMapSize ]byte )(unsafe .Pointer (& b [0 ]))
7375 db .datasz = sz
7476 return nil
7577}
Original file line number Diff line number Diff line change 77 "unsafe"
88
99 "golang.org/x/sys/unix"
10+
11+ "go.etcd.io/bbolt/internal/common"
1012)
1113
1214// flock acquires an advisory lock on a file descriptor.
@@ -67,7 +69,7 @@ func mmap(db *DB, sz int) error {
6769
6870 // Save the original byte slice and convert to a byte array pointer.
6971 db .dataref = b
70- db .data = (* [maxMapSize ]byte )(unsafe .Pointer (& b [0 ]))
72+ db .data = (* [common . MaxMapSize ]byte )(unsafe .Pointer (& b [0 ]))
7173 db .datasz = sz
7274 return nil
7375}
You can’t perform that action at this time.
0 commit comments