rocksdb/utilities/transactions
Maysam Yabandeh 5709e97a74 Skip CancelAllBackgroundWork if DBImpl is already closed (#6268)
Summary:
WritePreparedTxnDB calls CancelAllBackgroundWork in its destructor to avoid dangling references to it from background job's SnapshotChecker callback. However, if the DBImpl is already closed, the info log might be closed with it, which causes memory leak when CancelAllBackgroundWork tries to print to the info log. The patch fixes that by calling CancelAllBackgroundWork only if the db is not closed already.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6268

Differential Revision: D19303439

Pulled By: maysamyabandeh

fbshipit-source-id: 4228a6be7e78d43c90630347baa89b008200bd15
2020-01-07 15:34:27 -08:00
..
optimistic_transaction_db_impl.cc parallel occ (#6240) 2020-01-07 14:20:38 -08:00
optimistic_transaction_db_impl.h parallel occ (#6240) 2020-01-07 14:20:38 -08:00
optimistic_transaction_test.cc parallel occ (#6240) 2020-01-07 14:20:38 -08:00
optimistic_transaction.cc parallel occ (#6240) 2020-01-07 14:20:38 -08:00
optimistic_transaction.h parallel occ (#6240) 2020-01-07 14:20:38 -08:00
pessimistic_transaction_db.cc replace some reinterpret_cast with static_cast_with_check (#5740) 2019-08-27 10:59:11 -07:00
pessimistic_transaction_db.h WritePrepared: skip_concurrency_control option (#5330) 2019-05-28 16:29:45 -07:00
pessimistic_transaction.cc save a few redundant container lookups (#5875) 2019-10-07 12:28:09 -07:00
pessimistic_transaction.h Use delete to disable automatic generated methods. (#5009) 2019-09-11 18:09:00 -07:00
snapshot_checker.cc WriteUnPrepared: less virtual in iterator callback (#5049) 2019-04-02 14:47:16 -07:00
transaction_base.cc Fix compilation under MSVC VS2015 (#6081) 2019-11-26 18:24:09 -08:00
transaction_base.h Fix compilation under MSVC VS2015 (#6081) 2019-11-26 18:24:09 -08:00
transaction_db_mutex_impl.cc Apply modernize-use-override (2nd iteration) 2019-02-14 14:41:36 -08:00
transaction_db_mutex_impl.h Change RocksDB License 2017-07-15 16:11:23 -07:00
transaction_lock_mgr.cc Misc hashing updates / upgrades (#5909) 2019-10-24 17:16:46 -07:00
transaction_lock_mgr.h Use delete to disable automatic generated methods. (#5009) 2019-09-11 18:09:00 -07:00
transaction_test.cc Prevent an incompatible combination of options (#6254) 2020-01-02 16:15:06 -08:00
transaction_test.h Apply formatter to recent 200+ commits. (#5830) 2019-09-20 12:04:26 -07:00
transaction_util.cc use c++17's try_emplace if available (#5696) 2019-09-05 13:59:40 -07:00
transaction_util.h Fix PopSavePoint to merge info into the previous savepoint (#5628) 2019-07-26 11:39:30 -07:00
write_prepared_transaction_test.cc Disable SmallestUnCommittedSeq in Valgrind run (#6035) 2019-11-14 14:41:52 -08:00
write_prepared_txn_db.cc Skip CancelAllBackgroundWork if DBImpl is already closed (#6268) 2020-01-07 15:34:27 -08:00
write_prepared_txn_db.h Apply formatter to recent 200+ commits. (#5830) 2019-09-20 12:04:26 -07:00
write_prepared_txn.cc Fix compilation under MSVC VS2015 (#6081) 2019-11-26 18:24:09 -08:00
write_prepared_txn.h Fix compilation under MSVC VS2015 (#6081) 2019-11-26 18:24:09 -08:00
write_unprepared_transaction_test.cc WriteUnPrepared: Split ReadYourOwnWriteStress to three (#5776) 2019-09-06 15:25:26 -07:00
write_unprepared_txn_db.cc Apply formatter to recent 200+ commits. (#5830) 2019-09-20 12:04:26 -07:00
write_unprepared_txn_db.h WriteUnPrepared: use tracked_keys_ to track keys needed for rollback (#5562) 2019-07-16 15:24:56 -07:00
write_unprepared_txn.cc Fix compilation under MSVC VS2015 (#6081) 2019-11-26 18:24:09 -08:00
write_unprepared_txn.h Fix compilation under MSVC VS2015 (#6081) 2019-11-26 18:24:09 -08:00