rocksdb/utilities/write_batch_with_index
Igor Canadi 821cff114e Re-generate WriteEntry on WBWIIterator::Entry()
Summary:
[This is the resubmit of D39813. Tests were failing, so I reverted the diff. I found the bug and I'm now resubmitting]

If we don't do this, any calls to Entry() after WBWI mutation will result in undefined behavior. We need to re-fetch the offset from the skip list and regenerate the new pointer (because string's base pointer can change while mutating).

Test Plan: COMPILE_WITH_ASAN=1 make write_batch_with_index_test && ./write_batch_with_index_test

Reviewers: sdong

Reviewed By: sdong

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D39897
2015-06-10 12:57:38 -07:00
..
write_batch_with_index_internal.cc Fix CYGWin release build 2015-06-08 11:35:22 -07:00
write_batch_with_index_internal.h API to fetch from both a WriteBatchWithIndex and the db 2015-05-11 14:51:51 -07:00
write_batch_with_index_test.cc Re-generate WriteEntry on WBWIIterator::Entry() 2015-06-10 12:57:38 -07:00
write_batch_with_index.cc Re-generate WriteEntry on WBWIIterator::Entry() 2015-06-10 12:57:38 -07:00