summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2012-03-22 13:21:15 +0100
committerunknown <knielsen@knielsen-hq.org>2012-03-22 13:21:15 +0100
commit8e0afbd8af846073e00271aa4721b066e6cfb112 (patch)
tree7367e549bd2dd7a63bdd3d0987100427c51790d5 /sql/records.cc
parent5338a28912589f1169b66b880a489ec5636bcd83 (diff)
downloadmariadb-git-8e0afbd8af846073e00271aa4721b066e6cfb112.tar.gz
Backport some simple performance patches from 5.5.
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/records.cc b/sql/records.cc
index 10817dd8e51..648f939cf73 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -332,7 +332,8 @@ static int rr_quick(READ_RECORD *info)
break;
}
}
- update_virtual_fields(info->thd, info->table);
+ if (info->table->vfield)
+ update_virtual_fields(info->thd, info->table);
return tmp;
}