From a8155f3d2542bf2ae3e23122d8151eaf17db3280 Mon Sep 17 00:00:00 2001 From: kiel barry Date: Mon, 14 May 2018 09:44:09 -0700 Subject: [PATCH] ethdb: updates to pr --- ethdb/database.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ethdb/database.go b/ethdb/database.go index 41357ea65c..3e8cab1b52 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -154,7 +154,7 @@ func (db *LDBDatabase) Close() { } } -// LDB returns the memory address for leveldb.DB. +// LDB returns the internal leveldb.DB instance. func (db *LDBDatabase) LDB() *leveldb.DB { return db.db } @@ -361,7 +361,8 @@ func (db *LDBDatabase) meter(refresh time.Duration) { } } -// NewBatch populates the ldbBatch for read and writes to the db. +// NewBatch creates a memory buffer to group together database writes and flush +// them out in one go. Batches are not atomic, just an performance optimization. func (db *LDBDatabase) NewBatch() Batch { return &ldbBatch{db: db.db, b: new(leveldb.Batch)} }