Commit 9083c11d authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:5144], do not prepare transactions that need to be aborted

git-svn-id: file:///svn/toku/tokudb@44967 c7de825b-a66e-492c-adef-691d508d4ae1
parent 57d14356
......@@ -546,7 +546,7 @@ static void *worker(void *arg_v) {
r = env->txn_begin(env, 0, &txn, arg->txn_type); CKERR(r);
}
r = arg->operation(txn, arg, arg->operation_extra, we->counters);
if (!arg->cli->single_txn && arg->do_prepare) {
if (r==0 && !arg->cli->single_txn && arg->do_prepare) {
u_int8_t gid[DB_GID_SIZE];
memset(gid, 0, DB_GID_SIZE);
u_int64_t gid_val = txn->id64(txn);
......
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