diff options
author | marko@hundin.mysql.fi <> | 2005-06-21 11:49:55 +0300 |
---|---|---|
committer | marko@hundin.mysql.fi <> | 2005-06-21 11:49:55 +0300 |
commit | a5cbbb703136c4b81c8a1bd6ce63370144dd45fa (patch) | |
tree | 46e1dc0338d4a0428d8d04b5ffd135cf95d9ea68 /innobase/row | |
parent | 981e845d8f077e5d1a2d108c2bf1335f6929e4f4 (diff) | |
download | mariadb-git-a5cbbb703136c4b81c8a1bd6ce63370144dd45fa.tar.gz |
InnoDB: Remove some warnings reported by GCC 4.0.0.
Diffstat (limited to 'innobase/row')
-rw-r--r-- | innobase/row/row0umod.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/innobase/row/row0umod.c b/innobase/row/row0umod.c index 1cade0f304f..0225a9faec5 100644 --- a/innobase/row/row0umod.c +++ b/innobase/row/row0umod.c @@ -52,19 +52,16 @@ row_undo_mod_undo_also_prev_vers( /* out: TRUE if also previous modify or insert of this row should be undone */ undo_node_t* node, /* in: row undo node */ - que_thr_t* thr, /* in: query thread */ dulint* undo_no)/* out: the undo number */ { trx_undo_rec_t* undo_rec; - ibool ret; trx_t* trx; - UT_NOT_USED(thr); - trx = node->trx; if (0 != ut_dulint_cmp(node->new_trx_id, trx->id)) { + *undo_no = ut_dulint_zero; return(FALSE); } @@ -72,13 +69,7 @@ row_undo_mod_undo_also_prev_vers( *undo_no = trx_undo_rec_get_undo_no(undo_rec); - if (ut_dulint_cmp(trx->roll_limit, *undo_no) <= 0) { - ret = TRUE; - } else { - ret = FALSE; - } - - return(ret); + return(ut_dulint_cmp(trx->roll_limit, *undo_no) <= 0); } /*************************************************************** @@ -214,7 +205,7 @@ row_undo_mod_clust( /* Check if also the previous version of the clustered index record should be undone in this same rollback operation */ - more_vers = row_undo_mod_undo_also_prev_vers(node, thr, &new_undo_no); + more_vers = row_undo_mod_undo_also_prev_vers(node, &new_undo_no); pcur = &(node->pcur); |