Commented the empty table in c_level_db, and cleaned up the mem_db Value call.
This commit is contained in:
parent
4fdcf51467
commit
2feff1ea16
|
@ -107,6 +107,7 @@ func (db *CLevelDB) Print() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *CLevelDB) Stats() map[string]string {
|
func (db *CLevelDB) Stats() map[string]string {
|
||||||
|
// TODO: Find the available properties for the C LevelDB implementation
|
||||||
keys := []string{}
|
keys := []string{}
|
||||||
|
|
||||||
stats := make(map[string]string)
|
stats := make(map[string]string)
|
||||||
|
|
|
@ -94,10 +94,7 @@ func (it *memDBIterator) Key() []byte {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (it *memDBIterator) Value() []byte {
|
func (it *memDBIterator) Value() []byte {
|
||||||
it.db.mtx.Lock()
|
return it.db.Get(it.Key())
|
||||||
defer it.db.mtx.Unlock()
|
|
||||||
|
|
||||||
return it.db.db[it.keys[it.last]]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *MemDB) Iterator() Iterator {
|
func (db *MemDB) Iterator() Iterator {
|
||||||
|
|
Loading…
Reference in New Issue