~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_range.cc

  • Committer: Stewart Smith
  • Date: 2010-06-16 14:17:58 UTC
  • mto: (1626.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1633.
  • Revision ID: stewart@flamingspork.com-20100616141758-odpf36m0wo09ok4c
add handler_write status variable test for when statement was rolled back

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/*
17
17
  Gives a approximated number of how many records there is between two keys.
56
56
  if (fast_mi_readinfo(info))
57
57
    return(HA_POS_ERROR);
58
58
  info->update&= (HA_STATE_CHANGED+HA_STATE_ROW_CHANGED);
 
59
  if (info->s->concurrent_insert)
 
60
    pthread_rwlock_rdlock(&info->s->key_root_lock[inx]);
59
61
 
60
62
  switch(info->s->keyinfo[inx].key_alg){
61
63
  case HA_KEY_ALG_BTREE:
72
74
      res=HA_POS_ERROR;
73
75
  }
74
76
 
 
77
  if (info->s->concurrent_insert)
 
78
    pthread_rwlock_unlock(&info->s->key_root_lock[inx]);
75
79
  fast_mi_writeinfo(info);
76
80
 
77
81
  return(res);