summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-08-15 15:29:32 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-08-15 15:58:37 +0300
commit112589cdeda90b20e015e495912fe7d4dd85c0d7 (patch)
tree6fbe3177e07ea4d304d5ba24b5747bfd5c4df301 /storage
parentd07936aabadc99be885d6fed24d309e4611887c4 (diff)
downloadmariadb-git-112589cdeda90b20e015e495912fe7d4dd85c0d7.tar.gz
MDEV-19740: Remove a bogus condition
This triggered a "may be uninitialized" warning from GCC 9.2.1. The bogus-looking condition was added in 7e916bb86f512ff79f30d809b813608a625ec5ba
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/row/row0sel.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/storage/innobase/row/row0sel.cc b/storage/innobase/row/row0sel.cc
index d5b1a596f01..6b3542e7aa3 100644
--- a/storage/innobase/row/row0sel.cc
+++ b/storage/innobase/row/row0sel.cc
@@ -5726,9 +5726,7 @@ lock_wait_or_error:
/*-------------------------------------------------------------*/
if (!dict_index_is_spatial(index)) {
- if (rec) {
- btr_pcur_store_position(pcur, &mtr);
- }
+ btr_pcur_store_position(pcur, &mtr);
}
lock_table_wait: