Commit 79a9a40d authored by John Esmet's avatar John Esmet

FT-261 Don't clone an empty live root transaction OMT

parent d8358af7
...@@ -339,7 +339,11 @@ int live_root_txn_list_iter(const TOKUTXN &live_xid, const uint32_t UU(index), T ...@@ -339,7 +339,11 @@ int live_root_txn_list_iter(const TOKUTXN &live_xid, const uint32_t UU(index), T
// Create list of root transactions that were live when this txn began. // Create list of root transactions that were live when this txn began.
static inline void static inline void
setup_live_root_txn_list(xid_omt_t* live_root_txnid, xid_omt_t* live_root_txn_list) { setup_live_root_txn_list(xid_omt_t* live_root_txnid, xid_omt_t* live_root_txn_list) {
if (live_root_txnid->size() > 0) {
live_root_txn_list->clone(*live_root_txnid); live_root_txn_list->clone(*live_root_txnid);
} else {
live_root_txn_list->create_no_array();
}
} }
//Heaviside function to search through an OMT by a TXNID //Heaviside function to search through an OMT by a TXNID
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment