author | Alberto Bertogli
<albertito@gmail.com> 2004-08-30 14:56:19 UTC |
committer | Alberto Bertogli
<albertito@gmail.com> 2007-07-15 13:17:52 UTC |
parent | 6dd902541b99cd235d1531b50b66d8362dbba578 |
trans.c | +4 | -0 |
diff --git a/trans.c b/trans.c index 438a53c..0954b73 100644 --- a/trans.c +++ b/trans.c @@ -194,6 +194,10 @@ ssize_t jtrans_commit(struct jtrans *ts) pthread_mutex_lock(&(ts->lock)); + /* clear the flags */ + ts->flags = ts->flags & ~J_COMMITED; + ts->flags = ts->flags & ~J_ROLLBACKED; + name = (char *) malloc(PATH_MAX); if (name == NULL) goto exit;