Issue #5842: write prepare policy, before XA commit, shutdown will core
This commit is contained in:
parent
e8263dbdaa
commit
4277f1065f
@ -527,9 +527,12 @@ class WritePreparedTxnDB : public PessimisticTransactionDB {
|
||||
|
||||
public:
|
||||
~PreparedHeap() {
|
||||
if (!TEST_CRASH_) {
|
||||
assert(heap_.empty());
|
||||
assert(erased_heap_.empty());
|
||||
/*
|
||||
Assert prepared_txns_ is empty is ideal case. In XA
|
||||
transactions scenario the prepared_txns_ is non-empty since some
|
||||
transactions are not committed but be prepared. So the assert is
|
||||
disabled.
|
||||
*/
|
||||
}
|
||||
}
|
||||
port::Mutex* push_pop_mutex() { return &push_pop_mutex_; }
|
||||
|
Loading…
Reference in New Issue
Block a user