rocksdb/utilities/write_batch_with_index
Reid Horuff 0460e9dcce Modification of WriteBatch to support two phase commit
Summary: Adds three new WriteBatch data types: Prepare(xid), Commit(xid), Rollback(xid). Prepare(xid) should precede the (single) operation to which is applies. There can obviously be multiple Prepare(xid) markers. There should only be one Rollback(xid) or Commit(xid) marker yet not both. None of this logic is currently enforced and will most likely be implemented further up such as in the memtableinserter. All three markers are similar to PutLogData in that they are writebatch meta-data, ie stored but not counted. All three markers differ from PutLogData in that they will actually be written to disk. As for WriteBatchWithIndex, Prepare, Commit, Rollback are all implemented just as PutLogData and none are tested just as PutLogData.

Test Plan: single unit test in write_batch_test.

Reviewers: hermanlee4, sdong, anthony

Subscribers: leveldb, dhruba, vasilep, andrewkr

Differential Revision: https://reviews.facebook.net/D57867
2016-05-10 14:06:07 -07:00
..
write_batch_with_index.cc Modification of WriteBatch to support two phase commit 2016-05-10 14:06:07 -07:00
write_batch_with_index_internal.cc Modification of WriteBatch to support two phase commit 2016-05-10 14:06:07 -07:00
write_batch_with_index_internal.h Modification of WriteBatch to support two phase commit 2016-05-10 14:06:07 -07:00
write_batch_with_index_test.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00