Commented the empty table in c_level_db, and cleaned up the mem_db Value call.

This commit is contained in:
Paul W. Homer 2017-04-01 15:44:41 -04:00
parent 4fdcf51467
commit 2feff1ea16
2 changed files with 2 additions and 4 deletions

View File

@ -107,6 +107,7 @@ func (db *CLevelDB) Print() {
}
func (db *CLevelDB) Stats() map[string]string {
// TODO: Find the available properties for the C LevelDB implementation
keys := []string{}
stats := make(map[string]string)

View File

@ -94,10 +94,7 @@ func (it *memDBIterator) Key() []byte {
}
func (it *memDBIterator) Value() []byte {
it.db.mtx.Lock()
defer it.db.mtx.Unlock()
return it.db.db[it.keys[it.last]]
return it.db.Get(it.Key())
}
func (db *MemDB) Iterator() Iterator {