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
2019-03-10 12:46:32 +04:00
Jack Zampolin
8c9df30e28
libs/db: Add cleveldb.Stats() ( #3379 )
...
Fixes : #3378
* Add stats to cleveldb implementation
* update changelog
* remote TODO
also
- sort keys
- preallocate memory
* fix const initializer []string literal is not a constant
* add test
2019-03-05 10:56:46 +04:00
Jae Kwon
416d143bf7
R4R: Swap start/end in ReverseIterator ( #2913 )
...
* Swap start/end in ReverseIterator
* update CHANGELOG_PENDING
* fixes from review
2018-11-28 08:49:24 -05:00
Ethan Buchman
ae3bf81833
mv tmlibs files to libs dir
2018-07-01 22:36:03 -04:00