Skip to content

Commit

Permalink
oqgraph: remove redundant update_virtual_fields() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Feb 13, 2017
1 parent eda2ebe commit 4cf4b61
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions storage/oqgraph/oqgraph_thunk.cc
Expand Up @@ -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))
Expand All @@ -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))
{
Expand All @@ -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;
Expand Down Expand Up @@ -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) ||
Expand Down Expand Up @@ -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) ||
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit 4cf4b61

Please sign in to comment.