~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/ha_innodb.h

mergeĀ lp:~hingo/drizzle/drizzle-auth_ldap-fix-and-docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 2000, 2010, MySQL AB & Innobase Oy. All Rights Reserved.
 
3
Copyright (C) 2000, 2010, MySQL AB & Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
23
23
  Innodb
24
24
*/
25
25
 
 
26
#pragma once
26
27
#ifndef INNODB_HANDLER_HA_INNODB_H
27
28
#define INNODB_HANDLER_HA_INNODB_H
28
29
 
139
140
        UNIV_INTERN const char* index_type(uint key_number);
140
141
        UNIV_INTERN const key_map* keys_to_use_for_scanning();
141
142
 
142
 
        UNIV_INTERN int doOpen(const drizzled::TableIdentifier &identifier, int mode, uint test_if_locked);
 
143
        UNIV_INTERN int doOpen(const drizzled::identifier::Table &identifier, int mode, uint test_if_locked);
143
144
        UNIV_INTERN int close(void);
144
145
        UNIV_INTERN double scan_time();
145
146
        UNIV_INTERN double read_time(uint index, uint ranges, ha_rows rows);
219
220
};
220
221
 
221
222
 
222
 
extern "C" {
223
 
 
224
223
/** Get the file name of the MySQL binlog.
225
224
 * @return the name of the binlog file
226
225
 */
239
238
*/
240
239
int session_slave_thread(const Session *session);
241
240
 
242
 
}
243
 
 
244
241
typedef struct trx_struct trx_t;
245
242
/********************************************************************//**
246
243
@file Cursor/ha_innodb.h
248
245
about a possible transaction rollback inside InnoDB caused by a lock wait
249
246
timeout or a deadlock.
250
247
@return MySQL error code */
251
 
extern "C" UNIV_INTERN
 
248
UNIV_INTERN
252
249
int
253
250
convert_error_code_to_mysql(
254
251
/*========================*/
259
256
/*********************************************************************//**
260
257
Allocates an InnoDB transaction for a MySQL Cursor object.
261
258
@return InnoDB transaction handle */
262
 
extern "C" UNIV_INTERN
 
259
UNIV_INTERN
263
260
trx_t*
264
261
innobase_trx_allocate(
265
262
/*==================*/
269
266
This function checks each index name for a table against reserved
270
267
system default primary index name 'GEN_CLUST_INDEX'. If a name matches,
271
268
this function pushes an error message to the client, and returns true. */
272
 
extern "C"
273
269
bool
274
270
innobase_index_name_is_reserved(
275
271
/*============================*/