Commit 56182a15 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel
Browse files

[t:4297], make child transactions that are prepared be a NO-OP at the ydb...

[t:4297], make child transactions that are prepared be a NO-OP at the ydb layer. MySQL calls prepare on child transactions

git-svn-id: file:///svn/toku/tokudb@41767 c7de825b-a66e-492c-adef-691d508d4ae1
parent e99a1452
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ toku_txn_abort_only(DB_TXN * txn,
static int
toku_txn_xa_prepare (DB_TXN *txn, TOKU_XA_XID *xid) {
    if (!txn) return EINVAL;
    if (txn->parent) return EINVAL;
    if (txn->parent) return 0; // make this a NO-OP, MySQL calls this
    HANDLE_PANICKED_ENV(txn->mgrp);
    //Recursively commit any children.
    if (db_txn_struct_i(txn)->child) {