~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_rrnd.c

  • Committer: Stewart Smith
  • Date: 2008-10-15 04:21:24 UTC
  • mto: This revision was merged to the branch mainline in revision 516.
  • Revision ID: stewart@flamingspork.com-20081015042124-kdmb74bcbky1k1nz
remove my_pthread_[gs]etspecific

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
/* Read a record with random-access. The position to the record must
17
17
   get by MI_INFO. The next record can be read with pos= MI_POS_ERROR */
18
18
 
19
19
 
20
 
#include "myisam_priv.h"
21
 
 
22
 
using namespace drizzled;
 
20
#include "myisamdef.h"
23
21
 
24
22
/*
25
23
           Read a row based on position.
31
29
           HA_ERR_END_OF_FILE = EOF.
32
30
*/
33
31
 
34
 
int mi_rrnd(MI_INFO *info, unsigned char *buf, register internal::my_off_t filepos)
 
32
int mi_rrnd(MI_INFO *info, unsigned char *buf, register my_off_t filepos)
35
33
{
36
34
  bool skip_deleted_blocks;
37
35
 
54
52
  info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
55
53
 
56
54
  if (info->opt_flag & WRITE_CACHE_USED && flush_io_cache(&info->rec_cache))
57
 
    return(errno);
 
55
    return(my_errno);
58
56
 
59
57
  return ((*info->s->read_rnd)(info,buf,filepos,skip_deleted_blocks));
60
58
}