()
| 47 | } |
| 48 | |
| 49 | func (it *Iterator) Value() ([]byte, error) { |
| 50 | logRecordPst := it.indexIter.Value() |
| 51 | it.db.lock.RLock() |
| 52 | defer it.db.lock.RUnlock() |
| 53 | |
| 54 | return it.db.getValueByPosition(logRecordPst) |
| 55 | } |
| 56 | |
| 57 | func (it *Iterator) Close() { |
| 58 | it.indexIter.Close() |