]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix for 2PC causing WAL to grow too large
authorReid Horuff <horuff@fb.com>
Thu, 19 Jan 2017 23:21:07 +0000 (15:21 -0800)
committerYi Wu <yiwu@fb.com>
Fri, 20 Jan 2017 18:46:47 +0000 (10:46 -0800)
commit512e4418191ebcebc5e6f904be2561a67d2f232b
treef20de3ac46ac788795090f713bfad95d2882f91a
parent62a1c55418a5dbf8621247c4c9afc03b32390473
Fix for 2PC causing WAL to grow too large

Summary:
Consider the following single column family scenario:
prepare in log A
commit in log B
*WAL is too large, flush all CFs to releast log A*
*CFA is on log B so we do not see CFA is depending on log A so no flush is requested*

To fix this we must also consider the log containing the prepare section when determining what log a CF is dependent on.
Closes https://github.com/facebook/rocksdb/pull/1768

Differential Revision: D4403265

Pulled By: reidHoruff

fbshipit-source-id: ce800ff
db/column_family.cc
db/column_family.h
db/db_impl.cc
db/db_impl.h
db/db_impl_debug.cc
db/memtable_list.h
utilities/transactions/transaction_test.cc