rocksdb/utilities/write_batch_with_index
agiardullo 8161bdb5a0 WriteBatch Save Points
Summary:
Support RollbackToSavePoint() in WriteBatch and WriteBatchWithIndex.  Support for partial transaction rollback is needed for MyRocks.

An alternate implementation of Transaction::RollbackToSavePoint() exists in D40869.  However, the other implementation is messier because it is implemented outside of WriteBatch.  This implementation is much cleaner and also exposes a potentially useful feature to WriteBatch.

Test Plan: Added unit tests

Reviewers: IslamAbdelRahman, kradhakrishnan, maykov, yoshinorim, hermanlee4, spetrunia, sdong, yhchiang

Reviewed By: yhchiang

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D42723
2015-07-29 16:54:23 -07:00
..
write_batch_with_index_internal.cc WriteBatch Save Points 2015-07-29 16:54:23 -07:00
write_batch_with_index_internal.h Windows Port from Microsoft 2015-07-01 16:13:56 -07:00
write_batch_with_index_test.cc WriteBatch Save Points 2015-07-29 16:54:23 -07:00
write_batch_with_index.cc WriteBatch Save Points 2015-07-29 16:54:23 -07:00