Synchronize (and fix) maximal size of lmdb dbs

Store can now be up to 40 Go large (was 4 To!)
Context can now be up to 400 Go large (was 40 Go)
This commit is contained in:
Pierre Boutillier 2019-01-29 16:12:39 +01:00 committed by Pierre Boutillier
parent 98076324bf
commit 677d2ae9d6
2 changed files with 3 additions and 3 deletions

View File

@ -1287,8 +1287,8 @@ let read
let init let init
?patch_context ?patch_context
?(store_mapsize=4_096_000_000_000L) ?(store_mapsize=40_960_000_000L)
?(context_mapsize=40_960_000_000L) ?(context_mapsize=409_600_000_000L)
~store_root ~store_root
~context_root ~context_root
genesis = genesis =

View File

@ -104,7 +104,7 @@ module Conf = struct
let root = Irmin.Private.Conf.root let root = Irmin.Private.Conf.root
let mapsize = let mapsize =
Irmin.Private.Conf.key "mapsize" int64_converter 40_960_000_000L Irmin.Private.Conf.key "mapsize" int64_converter 409_600_000_000L
let readonly = let readonly =
Irmin.Private.Conf.key "readonly" bool_converter false Irmin.Private.Conf.key "readonly" bool_converter false