~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_rrnd.c

  • Committer: Monty Taylor
  • Date: 2008-08-01 22:33:44 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080801223344-vzhlflfmtijp1imv
First pass at gettexizing the error messages.

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, uchar *buf, register my_off_t filepos)
35
33
{
36
 
  bool skip_deleted_blocks;
 
34
  my_bool skip_deleted_blocks;
37
35
 
38
36
  skip_deleted_blocks=0;
39
37
 
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
}