Yumin Xia
36d7180ca2
libs/db: close batch ( #3397 )
ClevelDB requires closing when WriteBatch is no longer needed, https://godoc.org/github.com/jmhodges/levigo#WriteBatch.Close
Fixes the memory leak in https://github.com/cosmos/cosmos-sdk/issues/3842
6 years ago
Yumin Xia
b021f1e505
libs/db: close batch ( #3397 )
ClevelDB requires closing when WriteBatch is no longer needed, https://godoc.org/github.com/jmhodges/levigo#WriteBatch.Close
Fixes the memory leak in https://github.com/cosmos/cosmos-sdk/issues/3842
6 years ago
Jae Kwon
416d143bf7
R4R: Swap start/end in ReverseIterator ( #2913 )
* Swap start/end in ReverseIterator
* update CHANGELOG_PENDING
* fixes from review
6 years ago
Joon
e7708850c0
libs: Let prefixIterator implements Iterator correctly ( #2581 )
Fixes #2577
6 years ago
Zach Ramsay
44dad6d70b
Revert "detele everything"
This reverts commit d02c5d1e30
.
6 years ago
Zach Ramsay
d02c5d1e30
detele everything
6 years ago
Ethan Buchman
ae3bf81833
mv tmlibs files to libs dir
6 years ago
Jae Kwon
e328006bfe
Jae/fixprefixdb ( #199 )
* Fix PrefixDB Iterator
* PrefixDB Iterator/ReverseIterator fixes
* Bump version 0.8.2
* Update CHANGELOG.md about DebugDB
* Keep invalid source to be closed
* Use prefixBatch instead of memBatch
7 years ago
Jae Kwon
b0e0dc5de3
Implement DebugDB ( #166 )
7 years ago
Jae Kwon
d289c9286e
Implement NewPrefixDB ( #164 )
* encodeByteSlice uses uvarint for length instead of varint
* Implemented NewPrefixDB
* Fix flowrate test (#165 )
* Complete implementation and fix tests
* Add tests for MemBatch Write[Sync]
7 years ago