diff options
Diffstat (limited to 'innobase/row/row0row.c')
-rw-r--r-- | innobase/row/row0row.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/innobase/row/row0row.c b/innobase/row/row0row.c index 6820cb5bccd..327a47f4009 100644 --- a/innobase/row/row0row.c +++ b/innobase/row/row0row.c @@ -568,7 +568,7 @@ row_get_clust_rec( found = row_search_on_row_ref(&pcur, mode, table, ref, mtr); - clust_rec = btr_pcur_get_rec(&pcur); + clust_rec = found ? btr_pcur_get_rec(&pcur) : NULL; mem_heap_free(heap); @@ -576,11 +576,6 @@ row_get_clust_rec( *clust_index = dict_table_get_first_index(table); - if (!found) { - - return(NULL); - } - return(clust_rec); } |