This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "". The branch, master has been updated via 204a2db55175052492c549aaf9a20b8aa7003135 (commit) from b66a2dbc5b36876d3ef312f3986b5d82b7063ad4 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 204a2db55175052492c549aaf9a20b8aa7003135 Author: Phil Carns <[email protected]> Date: Fri May 30 09:31:39 2014 -0400 bug fix for segfault on bdb txn begin failure ----------------------------------------------------------------------- Summary of changes: src/aebdb/aebdb.ae | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) Diff of changes: diff --git a/src/aebdb/aebdb.ae b/src/aebdb/aebdb.ae index 49f83aa..078ba4b 100644 --- a/src/aebdb/aebdb.ae +++ b/src/aebdb/aebdb.ae @@ -216,12 +216,14 @@ __blocking int aebdb_txn_begin(DB_ENV *env, * begin call in bdb to block on any significant I/O or lock operations */ ret = env->txn_begin(env, parent, tid, flags); - - /* store the tid */ - ot->tid = *tid; - triton_mutex_lock(&txn_table_mutex); - triton_hash_add(txn_table, ot->tid, &ot->hash_link); - triton_mutex_unlock(&txn_table_mutex); + if(ret == 0) + { + /* store the tid */ + ot->tid = *tid; + triton_mutex_lock(&txn_table_mutex); + triton_hash_add(txn_table, ot->tid, &ot->hash_link); + triton_mutex_unlock(&txn_table_mutex); + } return(ret); } hooks/post-receive --
participants (1)
-
noreply@mcs.anl.gov