Summary: Large txn commit optimization requires all updates are added to a transaction's WriteBatchWithIndex. However, some usage of transactions may add updates directly to the WBWI's underlying write batch. In these cases, we should not attempt to ingest the WBWI since it will drop these updates. This PR adds sanity checking for this. Pull Request resolved: https://github.com/facebook/rocksdb/pull/13722 Test Plan: - added checks in unit test and stress test - manually check LOG files for the new unit test Reviewed By: hx235 Differential Revision: D77247688 Pulled By: cbi42 fbshipit-source-id: 3d1c0c6e64d6d7dfd5578bc4d77abe44cac1e419 |
||
---|---|---|
.. | ||
write_batch_with_index.cc | ||
write_batch_with_index_internal.cc | ||
write_batch_with_index_internal.h | ||
write_batch_with_index_test.cc |