~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/base.h

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
/* This file includes constants used with all databases */
21
21
 
22
 
/** 
23
 
 * @TODO Name this file something better and split it out if necessary.  
24
 
 * base.h isn't descriptive, especially compared to global.h 
 
22
/**
 
23
 * @TODO Name this file something better and split it out if necessary.
 
24
 * base.h isn't descriptive, especially compared to global.h
25
25
 *
26
26
 * @TODO Convert HA_XXX defines into enums and/or bitmaps
27
27
 */
95
95
 
96
96
        /* Index and table build methods */
97
97
 
98
 
enum ha_build_method { 
99
 
  HA_BUILD_DEFAULT, 
 
98
enum ha_build_method {
 
99
  HA_BUILD_DEFAULT,
100
100
  HA_BUILD_ONLINE,
101
 
  HA_BUILD_OFFLINE 
 
101
  HA_BUILD_OFFLINE
102
102
};
103
103
 
104
104
        /* The following is parameter to ha_extra() */
141
141
  HA_EXTRA_CHANGE_KEY_TO_UNIQUE,
142
142
  HA_EXTRA_CHANGE_KEY_TO_DUP,
143
143
  /*
144
 
    When using HA_EXTRA_KEYREAD, overwrite only key member fields and keep 
 
144
    When using HA_EXTRA_KEYREAD, overwrite only key member fields and keep
145
145
    other fields intact. When this is off (by default) InnoDB will use memcpy
146
146
    to overwrite entire row.
147
147
  */
167
167
  HA_EXTRA_WRITE_CANNOT_REPLACE,
168
168
  /*
169
169
    Inform handler that delete_row()/update_row() cannot batch deletes/updates
170
 
    and should perform them immediately. This may be needed when table has 
 
170
    and should perform them immediately. This may be needed when table has
171
171
    AFTER DELETE/UPDATE triggers which access to subject table.
172
172
    These flags are reset by the handler::extra(HA_EXTRA_RESET) call.
173
173
  */
499
499
/* X > key, i.e. not including the right endpoint */
500
500
#define NEAR_MAX        8
501
501
 
502
 
/* 
503
 
  This flag means that index is a unique index, and the interval is 
 
502
/*
 
503
  This flag means that index is a unique index, and the interval is
504
504
  equivalent to "AND(keypart_i = const_i)", where all of const_i are not NULLs.
505
505
*/
506
506
#define UNIQUE_RANGE    16
507
507
 
508
 
/* 
509
 
  This flag means that the interval is equivalent to 
510
 
  "AND(keypart_i = const_i)", where not all key parts may be used but all of 
 
508
/*
 
509
  This flag means that the interval is equivalent to
 
510
  "AND(keypart_i = const_i)", where not all key parts may be used but all of
511
511
  const_i are not NULLs.
512
512
*/
513
513
#define EQ_RANGE        32
514
514
 
515
515
/*
516
516
  This flag has the same meaning as UNIQUE_RANGE, except that for at least
517
 
  one keypart the condition is "keypart IS NULL". 
 
517
  one keypart the condition is "keypart IS NULL".
518
518
*/
519
519
#define NULL_RANGE      64
520
520