~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/blackhole/ha_blackhole.h

  • Committer: Monty Taylor
  • Date: 2008-11-18 22:12:56 UTC
  • mto: (589.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081118221256-ap2kmj073pdw7uap
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
 
 
17
#ifndef STORAGE_BLACKHOLE_HA_BLACKHOLE_H
 
18
#define STORAGE_BLACKHOLE_HA_BLACKHOLE_H
 
19
 
 
20
#include <drizzled/handler.h>
 
21
#include <mysys/thr_lock.h>
 
22
 
 
23
#define BLACKHOLE_MAX_KEY       64              /* Max allowed keys */
 
24
#define BLACKHOLE_MAX_KEY_SEG   16              /* Max segments for key */
 
25
#define BLACKHOLE_MAX_KEY_LENGTH 1000
 
26
 
17
27
/*
18
28
  Shared structure for correct LOCK operation
19
29
*/
55
65
           HA_AUTO_PART_KEY |
56
66
           HA_FILE_BASED);
57
67
  }
58
 
  uint32_t index_flags(uint32_t inx, uint32_t part __attribute__((unused)),
59
 
                       bool all_parts __attribute__((unused))) const
60
 
  {
61
 
    return ((table_share->key_info[inx].algorithm == HA_KEY_ALG_FULLTEXT) ?
62
 
            0 : HA_READ_NEXT | HA_READ_PREV | HA_READ_RANGE |
63
 
            HA_READ_ORDER | HA_KEYREAD_ONLY);
64
 
  }
 
68
  uint32_t index_flags(uint32_t inx, uint32_t part, bool all_parts) const;
65
69
  /* The following defines can be increased if necessary */
66
 
#define BLACKHOLE_MAX_KEY       64              /* Max allowed keys */
67
 
#define BLACKHOLE_MAX_KEY_SEG   16              /* Max segments for key */
68
 
#define BLACKHOLE_MAX_KEY_LENGTH 1000
69
70
  uint32_t max_supported_keys()          const { return BLACKHOLE_MAX_KEY; }
70
71
  uint32_t max_supported_key_length()    const { return BLACKHOLE_MAX_KEY_LENGTH; }
71
72
  uint32_t max_supported_key_part_length() const { return BLACKHOLE_MAX_KEY_LENGTH; }
94
95
                             THR_LOCK_DATA **to,
95
96
                             enum thr_lock_type lock_type);
96
97
};
 
98
 
 
99
#endif /* STORAGE_BLACKHOLE_HA_BLACKHOLE_H */