This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
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
4fdcf51467
commit
2feff1ea16
2 changed files
with
2 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
c_level_db.go
+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
{
Write
Preview
Loading…
Cancel
Save