~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_rnext_same.cc

  • Committer: lbieber
  • Date: 2010-01-21 18:21:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1277.
  • Revision ID: lbieber@orisndriz08-20100121182139-h549us3gsysyyl0e
clean up japanese tests, remove tests that no longer apply.  In test-run.pl change mysql_version_id to drizzle_version_id

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
#include "myisam_priv.h"
17
17
 
18
 
using namespace drizzled;
19
 
 
20
18
        /*
21
19
           Read next row with the same key as previous read, but abort if
22
20
           the key changes.
37
35
  if (fast_mi_readinfo(info))
38
36
    return(errno);
39
37
 
 
38
  if (info->s->concurrent_insert)
 
39
    pthread_rwlock_rdlock(&info->s->key_root_lock[inx]);
 
40
 
40
41
  switch (keyinfo->key_alg)
41
42
  {
42
43
    case HA_KEY_ALG_BTREE:
66
67
          break;
67
68
      }
68
69
  }
69
 
  /* Don't clear if database-changed */
 
70
  if (info->s->concurrent_insert)
 
71
    pthread_rwlock_unlock(&info->s->key_root_lock[inx]);
 
72
        /* Don't clear if database-changed */
70
73
  info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
71
74
  info->update|= HA_STATE_NEXT_FOUND | HA_STATE_RNEXT_SAME;
72
75