From 9fd8cdb00719397a598f04da15a995e7e095b941 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:42:06 -0500 Subject: [PATCH] Unexport DefaultMapSize --- translate.go | 2 +- translate_mapsize_all64bitsystems.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/translate.go b/translate.go index 660269ea0..d58586fc6 100644 --- a/translate.go +++ b/translate.go @@ -84,7 +84,7 @@ func NewTranslateFile() *TranslateFile { cols: make(map[string]*index), rows: make(map[frameKey]*index), - MapSize: DefaultMapSize, + MapSize: defaultMapSize, ReplicationRetryInterval: defaultReplicationRetryInterval, } diff --git a/translate_mapsize_all64bitsystems.go b/translate_mapsize_all64bitsystems.go index 5275c6ec5..605d6270a 100644 --- a/translate_mapsize_all64bitsystems.go +++ b/translate_mapsize_all64bitsystems.go @@ -2,7 +2,7 @@ package pilosa -// DefaultMapSize is the default size of mapped memory for the translate store. +// defaultMapSize is the default size of mapped memory for the translate store. // It is passed as an int to syscall.Mmap and so can only be larger than 2^31 on // 64bit systems. -const DefaultMapSize = 10 * (1 << 30) // 10GB +const defaultMapSize = 10 * (1 << 30) // 10GB