rocksdb/utilities/transactions
reid horuff 5bcf952a87 Fix WriteImpl empty batch hanging issue
Summary: There is an issue in DBImpl::WriteImpl where if an empty writebatch comes in and sync=true then the logs will be marked as being synced yet the sync never actually happens because there is no data in the writebatch. This causes the next incoming batch to hang while waiting for the logs to complete syncing. This fix syncs logs even if the writebatch is empty.

Test Plan: DoubleEmptyBatch unit test in transaction_test.

Reviewers: yoshinorim, hermanlee4, sdong, ngbronson, anthony

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D54057
2016-02-16 12:21:33 -08:00
..
optimistic_transaction_db_impl.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
optimistic_transaction_db_impl.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
optimistic_transaction_impl.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
optimistic_transaction_impl.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
optimistic_transaction_test.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_base.cc can_unlock set but not used 2016-02-16 11:24:40 -08:00
transaction_base.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_db_impl.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_db_impl.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_db_mutex_impl.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_db_mutex_impl.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_impl.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_impl.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_lock_mgr.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_lock_mgr.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_test.cc Fix WriteImpl empty batch hanging issue 2016-02-16 12:21:33 -08:00
transaction_util.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_util.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00