Browse Source

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

pull/1842/head
Paul W. Homer 8 years ago
parent
commit
2feff1ea16
2 changed files with 2 additions and 4 deletions
  1. +1
    -0
      c_level_db.go
  2. +1
    -4
      mem_db.go

+ 1
- 0
c_level_db.go 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)


+ 1
- 4
mem_db.go 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 {


Loading…
Cancel
Save