Skip to content

Commit

Permalink
Fix arm compilation of backend.go
Browse files Browse the repository at this point in the history
  • Loading branch information
luxas committed Mar 8, 2016
1 parent b922818 commit 92e73be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storage/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var (
// InitialMmapSize is the initial size of the mmapped region. Setting this larger than
// the potential max db size can prevent writer from blocking reader.
// This only works for linux.
InitialMmapSize = 10 * 1024 * 1024 * 1024
InitialMmapSize int64 = 10 * 1024 * 1024 * 1024
)

type Backend interface {
Expand Down
2 changes: 1 addition & 1 deletion storage/backend/boltoption_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ import (
// silently ignore this flag. Please update your kernel to prevent this.
var boltOpenOptions = &bolt.Options{
MmapFlags: syscall.MAP_POPULATE,
InitialMmapSize: InitialMmapSize,
InitialMmapSize: int(InitialMmapSize),
}

0 comments on commit 92e73be

Please sign in to comment.