|
@ -220,11 +220,8 @@ func (it *goLevelDBIterator) Value() []byte { |
|
|
return v |
|
|
return v |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (it *goLevelDBIterator) GetError() error { |
|
|
|
|
|
return it.source.Error() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (it *goLevelDBIterator) Valid() bool { |
|
|
func (it *goLevelDBIterator) Valid() bool { |
|
|
|
|
|
it.assertNoError() |
|
|
if it.invalid { |
|
|
if it.invalid { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
@ -253,3 +250,9 @@ func (it *goLevelDBIterator) Close() { |
|
|
func (it *goLevelDBIterator) Release() { |
|
|
func (it *goLevelDBIterator) Release() { |
|
|
it.source.Release() |
|
|
it.source.Release() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (it *goLevelDBIterator) assertNoError() { |
|
|
|
|
|
if err := it.source.Error(); err != nil { |
|
|
|
|
|
panic(err) |
|
|
|
|
|
} |
|
|
|
|
|
} |