rocksdb/utilities/write_batch_with_index
Igor Canadi 4949ef08db Re-generate WriteEntry on WBWIIterator::Entry()
Summary: 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: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D39813
2015-06-10 10:35:19 -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 10:35:19 -07:00
write_batch_with_index.cc Re-generate WriteEntry on WBWIIterator::Entry() 2015-06-10 10:35:19 -07:00