Reset blob value as soon as it's not needed in DBIter by ltamasi · Pull Request #10490 · facebook/rocksdb (original) (raw)

Summary:
We have recently added caching support to BlobDB, and separately,
implemented an optimization where reading blobs from the cache
results in the cache handle being transferred to the target PinnableSlice
(as opposed to the contents getting copied). With these changes,
it makes sense to reset the PinnableSlice storing the blob value in
DBIter as soon as we move to a different iterator position to prevent
us from holding on to the cache handle any longer than necessary.

Test Plan:
make check