Unexport DefaultMapSize

This commit is contained in:
Cody Soyland 2018-07-05 21:42:06 -05:00
parent 7559382115
commit 9fd8cdb007
2 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ func NewTranslateFile() *TranslateFile {
cols: make(map[string]*index),
rows: make(map[frameKey]*index),
MapSize: DefaultMapSize,
MapSize: defaultMapSize,
ReplicationRetryInterval: defaultReplicationRetryInterval,
}

View file

@ -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