rocksdb/utilities
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
..
backupable Make "make all" work for CYGWIN 2015-06-09 16:36:07 -07:00
checkpoint rocksdb: Add missing override 2015-02-26 11:28:41 -08:00
compacted_db Allow users to migrate to options.level_compaction_dynamic_level_bytes=true using CompactRange() 2015-06-01 18:21:14 -07:00
convenience fix crashes in stats and compaction filter for db_ttl_impl 2015-05-05 16:54:47 -07:00
document rocksdb: switch to gtest 2015-03-17 14:08:00 -07:00
flashcache Fix the compilation error in flashcache.cc on Mac 2015-04-07 15:27:23 -07:00
geodb Build for CYGWIN 2015-04-23 21:33:44 -07:00
leveldb_options Added CompatibleOptions for compatibility with LevelDB Options 2014-11-20 19:24:39 -08:00
merge_operators rocksdb: switch to gtest 2015-03-17 14:08:00 -07:00
redis rocksdb: switch to gtest 2015-03-17 14:08:00 -07:00
spatialdb API to fetch from both a WriteBatchWithIndex and the db 2015-05-11 14:51:51 -07:00
transactions better document max_write_buffer_number_to_maintain 2015-06-02 21:24:19 -07:00
ttl Make "make all" work for CYGWIN 2015-06-09 16:36:07 -07:00
write_batch_with_index Re-generate WriteEntry on WBWIIterator::Entry() 2015-06-10 12:57:38 -07:00
merge_operators.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00