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

[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
...@@ -219,7 +219,7 @@ toku_txn_abort_only(DB_TXN * txn, ...@@ -219,7 +219,7 @@ toku_txn_abort_only(DB_TXN * txn,
static int static int
toku_txn_xa_prepare (DB_TXN *txn, TOKU_XA_XID *xid) { toku_txn_xa_prepare (DB_TXN *txn, TOKU_XA_XID *xid) {
if (!txn) return EINVAL; 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); HANDLE_PANICKED_ENV(txn->mgrp);
//Recursively commit any children. //Recursively commit any children.
if (db_txn_struct_i(txn)->child) { if (db_txn_struct_i(txn)->child) {
......
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