aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-12 17:28:33 +0800
committerobscuren <geffobscura@gmail.com>2015-05-12 20:14:56 +0800
commit96d4a7d0870ee019098cf1991b00f6959843e6fd (patch)
tree8116157d12f3f3428bb22463290b2c0975a4165b
parentd82caa5ce38705d2dcdc2ba15c93df9325504e34 (diff)
downloaddexon-96d4a7d0870ee019098cf1991b00f6959843e6fd.tar
dexon-96d4a7d0870ee019098cf1991b00f6959843e6fd.tar.gz
dexon-96d4a7d0870ee019098cf1991b00f6959843e6fd.tar.bz2
dexon-96d4a7d0870ee019098cf1991b00f6959843e6fd.tar.lz
dexon-96d4a7d0870ee019098cf1991b00f6959843e6fd.tar.xz
dexon-96d4a7d0870ee019098cf1991b00f6959843e6fd.tar.zst
dexon-96d4a7d0870ee019098cf1991b00f6959843e6fd.zip
eth, ethdb: lower the amount of open files & improve err messages for db
Closes #880
-rw-r--r--eth/backend.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 80da30086..46ef64a8a 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -207,6 +207,7 @@ func New(config *Config) (*Ethereum, error) {
logger.NewJSONsystem(config.DataDir, config.LogJSON)
}
+ // Let the database take 3/4 of the max open files (TODO figure out a way to get the actual limit of the open files)
const dbCount = 3
ethdb.OpenFileLimit = 256 / (dbCount + 1)