rocksdb/utilities/write_batch_with_index
Maysam Yabandeh 60beefd6e0 WritePrepared Txn: Advance seq one per batch
Summary:
By default the seq number in DB is increased once per written key. WritePrepared txns requires the seq to be increased once per the entire batch so that the seq would be used as the prepare timestamp by which the transaction is identified. Also we need to increase seq for the commit marker since it would give a unique id to the commit timestamp of transactions.

Two unit tests are added to verify our understanding of how the seq should be increased. The recovery path requires much more work and is left to another patch.
Closes https://github.com/facebook/rocksdb/pull/2885

Differential Revision: D5837843

Pulled By: maysamyabandeh

fbshipit-source-id: a08960b93d727e1cf438c254d0c2636fb133cc1c
2017-09-18 14:45:08 -07:00
..
write_batch_with_index_internal.cc WritePrepared Txn: Advance seq one per batch 2017-09-18 14:45:08 -07:00
write_batch_with_index_internal.h Change RocksDB License 2017-07-15 16:11:23 -07:00
write_batch_with_index_test.cc Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
write_batch_with_index.cc Fix WriteBatchWithIndex::GetFromBatchAndDB not allowing StackableDB 2017-09-13 17:26:35 -07:00