mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
allow lmdb_to_mdbx create buckets
This commit is contained in:
parent
5d6305952a
commit
e4ee6a1f5b
@ -405,7 +405,7 @@ MainLoop:
|
||||
|
||||
func lmdbToMdbx(ctx context.Context, from, to string) error {
|
||||
_ = os.RemoveAll(to)
|
||||
src := ethdb.NewLMDB().Path(from).Flags(func(flags uint) uint { return (flags | lmdb.Readonly) ^ lmdb.NoReadahead }).MustOpen()
|
||||
src := ethdb.NewLMDB().Path(from).MustOpen()
|
||||
dst := ethdb.NewMDBX().Path(to).MustOpen()
|
||||
return kv2kv(ctx, src, dst)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user