summaryrefslogtreecommitdiffstats
path: root/storage/maria/ma_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/maria/ma_scan.c')
-rw-r--r--storage/maria/ma_scan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/maria/ma_scan.c b/storage/maria/ma_scan.c
index 5f2945a3..3e789489 100644
--- a/storage/maria/ma_scan.c
+++ b/storage/maria/ma_scan.c
@@ -48,10 +48,12 @@ int maria_scan_init(register MARIA_HA *info)
int maria_scan(MARIA_HA *info, uchar *record)
{
+ int res;
DBUG_ENTER("maria_scan");
/* Init all but update-flag */
info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
- DBUG_RETURN((*info->s->scan)(info, record, info->cur_row.nextpos, 1));
+ res= (*info->s->scan)(info, record, info->cur_row.nextpos, 1);
+ DBUG_RETURN(res);
}