~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/sel_arg.h

  • Committer: Jay Pipes
  • Date: 2010-03-09 20:02:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1339.
  • Revision ID: jpipes@serialcoder-20100309200229-dfrliy4fads9vyf4
Fixes Bug #535296 by only incrementing ha_commit_count when its a normal transaction commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008-2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008-2009 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
201
201
class SEL_ARG :public memory::SqlAlloc
202
202
{
203
203
public:
204
 
  uint8_t min_flag,max_flag,maybe_flag;
 
204
  uint8_t min_flag;
 
205
  uint8_t max_flag;
 
206
  uint8_t maybe_flag;
205
207
  uint8_t part;                                 // Which key part
206
208
  uint8_t maybe_null;
207
209
  /*
226
228
  SEL_ARG *next,*prev;    /* Links for bi-directional interval list */
227
229
  SEL_ARG *parent;        /* R-B tree parent */
228
230
  SEL_ARG *next_key_part;
229
 
  enum leaf_color { BLACK,RED } color;
230
 
  enum Type { IMPOSSIBLE, MAYBE, MAYBE_KEY, KEY_RANGE } type;
 
231
 
 
232
  enum leaf_color 
 
233
  { 
 
234
    BLACK,
 
235
    RED 
 
236
  } color;
 
237
 
 
238
  enum Type 
 
239
  { 
 
240
    IMPOSSIBLE, 
 
241
    MAYBE, 
 
242
    MAYBE_KEY, 
 
243
    KEY_RANGE 
 
244
  } type;
231
245
 
232
246
  enum 
233
247
  {