summaryrefslogtreecommitdiff
path: root/storage/oqgraph/oqgraph_thunk.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-01-23 12:26:29 +0100
committerSergei Golubchik <serg@mariadb.org>2017-02-13 18:12:04 +0100
commit4cf4b61b24d4331aa930d0b36c36763b7d9ca0cd (patch)
tree2b42f2e7835943c30869bce5fbf6591f01f7ba43 /storage/oqgraph/oqgraph_thunk.cc
parenteda2ebefba43bde1b1881688576e865f9ba9617c (diff)
downloadmariadb-git-4cf4b61b24d4331aa930d0b36c36763b7d9ca0cd.tar.gz
oqgraph: remove redundant update_virtual_fields() calls
Diffstat (limited to 'storage/oqgraph/oqgraph_thunk.cc')
-rw-r--r--storage/oqgraph/oqgraph_thunk.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/storage/oqgraph/oqgraph_thunk.cc b/storage/oqgraph/oqgraph_thunk.cc
index 128e6191d98..19a709a1c59 100644
--- a/storage/oqgraph/oqgraph_thunk.cc
+++ b/storage/oqgraph/oqgraph_thunk.cc
@@ -193,9 +193,6 @@ int oqgraph3::cursor::restore_position()
return rc;
}
- if (table.vfield)
- table.update_virtual_fields(VCOL_UPDATE_FOR_READ);
-
table.file->position(table.record[0]);
while (memcmp(table.file->ref, _position.data(), table.file->ref_length))
@@ -206,9 +203,6 @@ int oqgraph3::cursor::restore_position()
return rc;
}
- if (table.vfield)
- table.update_virtual_fields(VCOL_UPDATE_FOR_READ);
-
if ((_origid && vertex_id(_graph->_source->val_int()) != *_origid) ||
(_destid && vertex_id(_graph->_target->val_int()) != *_destid))
{
@@ -230,9 +224,6 @@ int oqgraph3::cursor::restore_position()
table.file->ha_rnd_end();
return rc;
}
-
- if (table.vfield)
- table.update_virtual_fields(VCOL_UPDATE_FOR_READ);
}
_graph->_cursor= this;
@@ -310,8 +301,6 @@ int oqgraph3::cursor::seek_next()
return clear_position(rc);
}
- if (table.vfield)
- table.update_virtual_fields(VCOL_UPDATE_FOR_READ);
_graph->_stale= true;
if ((_origid && vertex_id(_graph->_source->val_int()) != *_origid) ||
@@ -345,8 +334,6 @@ int oqgraph3::cursor::seek_prev()
return clear_position(rc);
}
- if (table.vfield)
- table.update_virtual_fields(VCOL_UPDATE_FOR_READ);
_graph->_stale= true;
if ((_origid && vertex_id(_graph->_source->val_int()) != *_origid) ||
@@ -507,9 +494,6 @@ int oqgraph3::cursor::seek_to(
return clear_position(rc);
}
- if (table.vfield)
- table.update_virtual_fields(VCOL_UPDATE_FOR_READ);
-
if ((_origid && vertex_id(_graph->_source->val_int()) != *_origid) ||
(_destid && vertex_id(_graph->_target->val_int()) != *_destid))
{