Skip to content

Commit

Permalink
Revert "add map size setter" (ledgerwatch#1054)
Browse files Browse the repository at this point in the history
Reverts ledgerwatch#1050

It causes the error:

`EROR[07-21|21:45:02.806] [txpool] flush is local history err="table:
PoolTransaction, err: mdbx_cursor_put: MDBX_MAP_FULL: Environment
mapsize limit reached"
`
  • Loading branch information
AlexeyAkhunov authored and blxdyx committed Sep 13, 2023
1 parent 33bd472 commit f384393
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion txpool/txpooluitl/all_components.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func AllComponents(ctx context.Context, cfg txpoolcfg.Config, cache kvcache.Cach
txPoolDB, err := mdbx.NewMDBX(log.New()).Label(kv.TxPoolDB).Path(cfg.DBDir).
WithTableCfg(func(defaultBuckets kv.TableCfg) kv.TableCfg { return kv.TxpoolTablesCfg }).
Flags(func(f uint) uint { return f ^ mdbx2.Durable | mdbx2.SafeNoSync }).
MapSize(512 * datasize.MB).
GrowthStep(16 * datasize.MB).
SyncPeriod(30 * time.Second).
Open()
Expand Down

0 comments on commit f384393

Please sign in to comment.