mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Change to max 2GB for now
This commit is contained in:
parent
e91139348e
commit
0123c7a898
|
@ -20,7 +20,7 @@ func createVolumeFile(fileName string, preallocate int64) (*os.File, error) {
|
||||||
memory_map.FileMemoryMap[fileName] = new(memory_map.MemoryMap)
|
memory_map.FileMemoryMap[fileName] = new(memory_map.MemoryMap)
|
||||||
|
|
||||||
new_mem_map := memory_map.FileMemoryMap[fileName]
|
new_mem_map := memory_map.FileMemoryMap[fileName]
|
||||||
new_mem_map.CreateMemoryMap(file, 1024*1024*1024*4)
|
new_mem_map.CreateMemoryMap(file, 1024*1024*1024*2)
|
||||||
|
|
||||||
if preallocate > 0 {
|
if preallocate > 0 {
|
||||||
glog.V(0).Infof("Preallocated disk space for %s is not supported", fileName)
|
glog.V(0).Infof("Preallocated disk space for %s is not supported", fileName)
|
||||||
|
|
Loading…
Reference in a new issue