~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_share.h

  • Committer: Brian Aker
  • Date: 2010-08-12 17:19:46 UTC
  • mfrom: (1701.1.1 turn-off-csv)
  • Revision ID: brian@tangent.org-20100812171946-n44naaqhg27gehlh
MErge Monty, remove CSV from auto-build

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) 2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 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
23
23
  instance of table share per one table in the database.
24
24
*/
25
25
 
26
 
#ifndef DRIZZLED_TABLE_INSTANCE_BASE_H
27
 
#define DRIZZLED_TABLE_INSTANCE_BASE_H
 
26
#ifndef DRIZZLED_TABLE_SHARE_H
 
27
#define DRIZZLED_TABLE_SHARE_H
28
28
 
29
29
#include <string>
30
30
 
31
31
#include <boost/unordered_map.hpp>
32
 
#include <boost/thread/condition_variable.hpp>
33
 
#include <boost/dynamic_bitset.hpp>
34
 
#include <boost/shared_ptr.hpp>
35
 
#include <boost/scoped_ptr.hpp>
36
 
 
37
 
#include <drizzled/memory/root.h>
38
 
#include <drizzled/message.h>
39
 
#include <drizzled/util/string.h>
40
 
 
41
 
#include <drizzled/lex_string.h>
42
 
#include <drizzled/key_map.h>
43
 
 
44
 
#include <drizzled/table/cache.h>
45
 
 
46
 
#include <drizzled/field.h>
47
 
 
 
32
 
 
33
#include "drizzled/typelib.h"
 
34
#include "drizzled/memory/root.h"
 
35
#include "drizzled/message/table.pb.h"
 
36
#include "drizzled/util/string.h"
48
37
 
49
38
namespace drizzled
50
39
{
51
40
 
52
 
const static std::string NO_PROTOBUFFER_AVAILABLE("NO PROTOBUFFER AVAILABLE");
 
41
typedef boost::unordered_map< TableIdentifier::Key, TableShare *> TableDefinitionCache;
 
42
 
 
43
const static std::string STANDARD_STRING("STANDARD");
 
44
const static std::string TEMPORARY_STRING("TEMPORARY");
 
45
const static std::string INTERNAL_STRING("INTERNAL");
 
46
const static std::string FUNCTION_STRING("FUNCTION");
53
47
 
54
48
namespace plugin
55
49
{
56
50
class EventObserverList;
57
 
class StorageEngine;
58
 
}
59
 
 
60
 
namespace table {
61
 
class Singular;
62
51
}
63
52
 
64
53
class Field_blob;
66
55
class TableShare
67
56
{
68
57
  typedef std::vector<std::string> StringVector;
69
 
 
70
58
public:
71
 
  typedef boost::shared_ptr<TableShare> shared_ptr;
72
 
  typedef std::vector <shared_ptr> vector;
73
 
 
74
 
  TableShare(const identifier::Table::Type type_arg);
75
 
 
76
 
  TableShare(const identifier::Table &identifier, const identifier::Table::Key &key); // Used by placeholder
77
 
 
78
 
  TableShare(const identifier::Table &identifier); // Just used during createTable()
79
 
 
80
 
  TableShare(const identifier::Table::Type type_arg,
81
 
             const identifier::Table &identifier,
 
59
  TableShare(TableIdentifier::Type type_arg);
 
60
 
 
61
  TableShare(TableIdentifier &identifier, const TableIdentifier::Key &key); // Used by placeholder
 
62
 
 
63
  TableShare(const TableIdentifier &identifier); // Just used during createTable()
 
64
 
 
65
  TableShare(TableIdentifier::Type type_arg,
 
66
             TableIdentifier &identifier,
82
67
             char *path_arg= NULL, uint32_t path_length_arg= 0); // Shares for cache
83
68
 
84
 
  virtual ~TableShare();
 
69
  ~TableShare();
85
70
 
86
71
private:
87
72
  /** Category of this table. */
88
73
  enum_table_category table_category;
89
74
 
 
75
  uint32_t open_count;                  /* Number of tables in open list */
90
76
public:
 
77
 
91
78
  bool isTemporaryCategory() const
92
79
  {
93
80
    return (table_category == TABLE_CATEGORY_TEMPORARY);
100
87
 
101
88
  /* The following is copied to each Table on OPEN */
102
89
  typedef std::vector<Field *> Fields;
103
 
 
104
90
private:
105
 
  Fields _fields;
106
 
 
 
91
  Fields field;
107
92
public:
108
93
  const Fields getFields() const
109
94
  {
110
 
    return _fields;
111
 
  }
112
 
 
113
 
  Fields getFields()
114
 
  {
115
 
    return _fields;
 
95
    return field;
116
96
  }
117
97
 
118
98
  Field ** getFields(bool)
119
99
  {
120
 
    return &_fields[0];
 
100
    return &field[0];
121
101
  }
122
102
 
123
103
  void setFields(uint32_t arg)
124
104
  {
125
 
    _fields.resize(arg);
 
105
    field.resize(arg);
126
106
  }
127
107
 
128
108
  uint32_t positionFields(Field **arg) const
129
109
  {
130
 
    return (arg - (Field **)&_fields[0]);
 
110
    return (arg - (Field **)&field[0]);
131
111
  }
132
112
 
133
113
  void pushField(Field *arg)
134
114
  {
135
 
    _field_size++;
136
 
    _fields.push_back(arg);
 
115
    fields++;
 
116
    field.push_back(arg);
137
117
  }
138
118
 
 
119
 
139
120
  Field **found_next_number_field;
140
 
 
141
121
private:
142
122
  Field *timestamp_field;               /* Used only during open */
143
 
 
144
123
public:
145
124
 
146
125
  Field *getTimestampField() const               /* Used only during open */
156
135
 
157
136
private:
158
137
  KeyInfo  *key_info;                   /* data of keys in database */
159
 
 
160
138
public:
161
139
  KeyInfo &getKeyInfo(uint32_t arg) const
162
140
  {
164
142
  }
165
143
  std::vector<uint>     blob_field;                     /* Index to blobs in Field arrray*/
166
144
 
167
 
private:
168
145
  /* hash of field names (contains pointers to elements of field array) */
 
146
private:
169
147
  typedef boost::unordered_map < std::string, Field **, util::insensitive_hash, util::insensitive_equal_to> FieldMap;
170
148
  typedef std::pair< std::string, Field ** > FieldMapPair;
171
149
  FieldMap name_hash; /* hash of field names */
172
 
 
173
150
public:
174
151
  size_t getNamedFieldSize() const
175
152
  {
188
165
 
189
166
private:
190
167
  memory::Root mem_root;
191
 
 
 
168
public:
192
169
  void *alloc_root(size_t arg)
193
170
  {
194
171
    return mem_root.alloc_root(arg);
204
181
    return &mem_root;
205
182
  }
206
183
 
 
184
private:
207
185
  std::vector<std::string> _keynames;
208
186
 
209
187
  void addKeyName(std::string arg)
212
190
                   arg.begin(), ::toupper);
213
191
    _keynames.push_back(arg);
214
192
  }
215
 
 
216
193
public:
217
194
  bool doesKeyNameExist(const char *name_arg, uint32_t name_length, uint32_t &position) const
218
195
  {
219
 
    return doesKeyNameExist(std::string(name_arg, name_length), position);
 
196
    std::string arg(name_arg, name_length);
 
197
    std::transform(arg.begin(), arg.end(),
 
198
                   arg.begin(), ::toupper);
 
199
 
 
200
    std::vector<std::string>::const_iterator iter= std::find(_keynames.begin(), _keynames.end(), arg);
 
201
 
 
202
    if (iter == _keynames.end())
 
203
      return false;
 
204
 
 
205
    position= iter -  _keynames.begin();
 
206
 
 
207
    return true;
220
208
  }
221
209
 
222
210
  bool doesKeyNameExist(std::string arg, uint32_t &position) const
228
216
 
229
217
    if (iter == _keynames.end())
230
218
    {
231
 
      position= UINT32_MAX; //historical, required for finding primary key from unique
 
219
      position= -1; //historical, required for finding primary key from unique
232
220
      return false;
233
221
    }
234
222
 
240
228
private:
241
229
  std::vector<TYPELIB> intervals;                       /* pointer to interval info */
242
230
 
 
231
  pthread_mutex_t mutex;                /* For locking the share  */
 
232
  pthread_cond_t cond;                  /* To signal that share is ready */
 
233
 
 
234
 
 
235
  void lock()
 
236
  {
 
237
    pthread_mutex_lock(&mutex);
 
238
  }
 
239
 
 
240
  void unlock()
 
241
  {
 
242
    pthread_mutex_unlock(&mutex);
 
243
  }
243
244
public:
244
 
  virtual void lock()
245
 
  { }
246
 
 
247
 
  virtual void unlock()
248
 
  { }
249
245
 
250
246
private:
251
247
  std::vector<unsigned char> default_values;            /* row with default values */
252
 
 
253
248
public:
254
 
  // @note This needs to be made to be const in the future
255
 
  unsigned char *getDefaultValues()
 
249
  unsigned char * getDefaultValues()
256
250
  {
257
251
    return &default_values[0];
258
252
  }
261
255
    default_values.resize(arg);
262
256
  }
263
257
 
264
 
  const charset_info_st *table_charset; /* Default charset of string fields */
265
 
 
266
 
  boost::dynamic_bitset<> all_set;
267
 
 
 
258
  const CHARSET_INFO *table_charset; /* Default charset of string fields */
 
259
 
 
260
  MyBitmap all_set;
 
261
private:
 
262
  std::vector<my_bitmap_map> all_bitmap;
 
263
 
 
264
public:
268
265
  /*
269
266
    Key which is used for looking-up table in table cache and in the list
270
267
    of thread's temporary tables. Has the form of:
276
273
    To ensure this one can use set_table_cache() methods.
277
274
  */
278
275
private:
279
 
  identifier::Table::Key private_key_for_cache; // This will not exist in the final design.
 
276
  TableIdentifier::Key private_key_for_cache; // This will not exist in the final design.
280
277
  std::vector<char> private_normalized_path; // This will not exist in the final design.
281
278
  LEX_STRING db;                        /* Pointer to db */
282
279
  LEX_STRING table_name;                /* Table name (for open) */
283
280
  LEX_STRING path;      /* Path to table (from datadir) */
284
281
  LEX_STRING normalized_path;           /* unpack_filename(path) */
285
 
 
286
282
public:
287
283
 
288
284
  const char *getNormalizedPath() const
295
291
    return path.str;
296
292
  }
297
293
 
298
 
  const identifier::Table::Key& getCacheKey() const // This should never be called when we aren't looking at a cache.
 
294
  const TableIdentifier::Key& getCacheKey() const // This should never be called when we aren't looking at a cache.
299
295
  {
300
296
    assert(private_key_for_cache.size());
301
297
    return private_key_for_cache;
306
302
    return private_key_for_cache.size();
307
303
  }
308
304
 
309
 
private:
310
305
  void setPath(char *str_arg, uint32_t size_arg)
311
306
  {
312
307
    path.str= str_arg;
319
314
    normalized_path.length= size_arg;
320
315
  }
321
316
 
322
 
public:
323
 
 
324
317
  const char *getTableName() const
325
318
  {
326
319
    return table_name.str;
356
349
 
357
350
private:
358
351
  uint64_t   version;
359
 
 
360
352
public:
361
353
  uint64_t getVersion() const
362
354
  {
363
355
    return version;
364
356
  }
365
357
 
366
 
  void refreshVersion();
 
358
  void refreshVersion()
 
359
  {
 
360
   version= refresh_version;
 
361
  }
367
362
 
368
363
  void resetVersion()
369
364
  {
370
365
    version= 0;
371
366
  }
372
367
 
373
 
private:
374
368
  uint32_t   timestamp_offset;          /* Set to offset+1 of record */
375
 
 
376
 
  uint32_t reclength;                   /* Recordlength */
377
 
  uint32_t stored_rec_length;         /* Stored record length*/
378
 
 
 
369
private:
 
370
  uint32_t   reclength;                 /* Recordlength */
379
371
public:
380
 
  uint32_t sizeStoredRecord() const
381
 
  {
382
 
    return stored_rec_length;
383
 
  }
 
372
  uint32_t   stored_rec_length;         /* Stored record length*/
384
373
 
385
374
  uint32_t getRecordLength() const
386
375
  {
395
384
  const Field_blob *getBlobFieldAt(uint32_t arg) const
396
385
  {
397
386
    if (arg < blob_fields)
398
 
      return (Field_blob*) _fields[blob_field[arg]];
 
387
      return (Field_blob*) field[blob_field[arg]];
399
388
 
400
389
    return NULL;
401
390
  }
404
393
  /* Max rows is a hint to HEAP during a create tmp table */
405
394
  uint64_t max_rows;
406
395
 
407
 
  boost::scoped_ptr<message::Table> _table_message;
408
 
 
 
396
  message::Table *table_proto;
409
397
public:
 
398
 
410
399
  /*
411
 
    @note Without a _table_message, we assume we are building a STANDARD table.
 
400
    @note Without a table_proto, we assume we are building a STANDARD table.
412
401
    This will be modified once we use Identifiers in the Share itself.
413
402
  */
414
403
  message::Table::TableType getTableType() const
415
404
  {
416
 
    return getTableMessage() ? getTableMessage()->type() : message::Table::STANDARD;
 
405
    return table_proto ? table_proto->type() : message::Table::STANDARD;
417
406
  }
418
407
 
419
408
  const std::string &getTableTypeAsString() const
420
409
  {
421
 
    if (getTableMessage())
422
 
      return message::type(getTableMessage()->type());
423
 
 
424
 
    return NO_PROTOBUFFER_AVAILABLE;
 
410
    switch (table_proto->type())
 
411
    {
 
412
    default:
 
413
    case message::Table::STANDARD:
 
414
      return STANDARD_STRING;
 
415
    case message::Table::TEMPORARY:
 
416
      return TEMPORARY_STRING;
 
417
    case message::Table::INTERNAL:
 
418
      return INTERNAL_STRING;
 
419
    case message::Table::FUNCTION:
 
420
      return FUNCTION_STRING;
 
421
    }
425
422
  }
426
423
 
427
424
  /* This is only used in one location currently */
428
 
  inline message::Table *getTableMessage() const
429
 
  {
430
 
    return _table_message.get();
431
 
  }
432
 
 
433
 
  void setTableMessage(const message::Table &arg)
434
 
  {
435
 
    assert(not getTableMessage());
436
 
    _table_message.reset(new(std::nothrow) message::Table(arg));
437
 
  }
438
 
 
439
 
  const message::Table::Field &field(int32_t field_position) const
440
 
  {
441
 
    assert(getTableMessage());
442
 
    return getTableMessage()->field(field_position);
 
425
  inline message::Table *getTableProto() const
 
426
  {
 
427
    return table_proto;
 
428
  }
 
429
 
 
430
  inline void setTableProto(message::Table *arg)
 
431
  {
 
432
    assert(table_proto == NULL);
 
433
    table_proto= arg;
443
434
  }
444
435
 
445
436
  inline bool hasComment() const
446
437
  {
447
 
    return (getTableMessage()) ?  getTableMessage()->options().has_comment() : false; 
 
438
    return (table_proto) ?  table_proto->options().has_comment() : false; 
448
439
  }
449
440
 
450
441
  inline const char *getComment()
451
442
  {
452
 
    return (getTableMessage() && getTableMessage()->has_options()) ?  getTableMessage()->options().comment().c_str() : NULL; 
 
443
    return (table_proto && table_proto->has_options()) ?  table_proto->options().comment().c_str() : NULL; 
453
444
  }
454
445
 
455
446
  inline uint32_t getCommentLength() const
456
447
  {
457
 
    return (getTableMessage()) ? getTableMessage()->options().comment().length() : 0; 
 
448
    return (table_proto) ? table_proto->options().comment().length() : 0; 
458
449
  }
459
450
 
460
451
  inline uint64_t getMaxRows() const
484
475
  }
485
476
 
486
477
private:
487
 
  identifier::Table::Type tmp_table;
 
478
  TableIdentifier::Type tmp_table;
488
479
public:
489
480
 
490
 
  identifier::Table::Type getType() const
 
481
  TableIdentifier::Type getType() const
491
482
  {
492
483
    return tmp_table;
493
484
  }
494
485
 
495
486
private:
496
 
  uint32_t _ref_count;       /* How many Table objects uses this */
497
 
 
 
487
  uint32_t ref_count;       /* How many Table objects uses this */
498
488
public:
499
489
  uint32_t getTableCount() const
500
490
  {
501
 
    return _ref_count;
 
491
    return ref_count;
502
492
  }
503
493
 
504
494
  void incrementTableCount()
505
495
  {
506
496
    lock();
507
 
    _ref_count++;
 
497
    ref_count++;
508
498
    unlock();
509
499
  }
510
500
 
511
 
  uint32_t decrementTableCount()
512
 
  {
513
 
    return --_ref_count;
514
 
  }
515
 
 
516
501
  uint32_t null_bytes;
517
502
  uint32_t last_null_bit_pos;
518
 
private:
519
 
  uint32_t _field_size;                         /* Number of fields */
520
 
 
521
 
public:
522
 
  void setFieldSize(uint32_t arg)
523
 
  {
524
 
    _field_size= arg;
525
 
  }
 
503
  uint32_t fields;                              /* Number of fields */
526
504
 
527
505
  uint32_t sizeFields() const
528
506
  {
529
 
    return _field_size;
 
507
    return fields;
530
508
  }
531
509
 
532
510
  uint32_t rec_buff_length;                 /* Size of table->record[] buffer */
541
519
  uint32_t uniques;                         /* Number of UNIQUE index */
542
520
  uint32_t null_fields;                 /* number of null fields */
543
521
  uint32_t blob_fields;                 /* number of blob fields */
544
 
private:
545
 
  bool has_variable_width;                  /* number of varchar fields */
546
 
 
547
 
public:
548
 
  bool hasVariableWidth() const
549
 
  {
550
 
    return has_variable_width; // We should calculate this.
551
 
  }
552
 
  void setVariableWidth()
553
 
  {
554
 
    has_variable_width= true;
555
 
  }
 
522
  uint32_t timestamp_field_offset;              /* Field number for timestamp field */
 
523
  uint32_t varchar_fields;                  /* number of varchar fields */
556
524
  uint32_t db_create_options;           /* Create options from database */
557
525
  uint32_t db_options_in_use;           /* Options in use */
558
526
  uint32_t db_record_offset;            /* if HA_REC_IN_SEQ */
585
553
  uint32_t next_number_key_offset;          /* autoinc keypart offset in a key */
586
554
  uint32_t next_number_keypart;             /* autoinc keypart number in a key */
587
555
  uint32_t error, open_errno, errarg;       /* error from open_table_def() */
 
556
  uint32_t column_bitmap_size;
588
557
 
589
 
private:
590
558
  uint8_t blob_ptr_size;                        /* 4 or 8 */
591
 
 
592
 
public:
593
 
  uint8_t sizeBlobPtr() const
594
 
  {
595
 
    return blob_ptr_size;
596
 
  }
597
 
 
598
559
  bool db_low_byte_first;               /* Portable row format */
599
560
 
 
561
private:
 
562
  bool name_lock;
 
563
public:
 
564
  bool isNameLock() const
 
565
  {
 
566
    return name_lock;
 
567
  }
 
568
 
 
569
  bool replace_with_name_lock;
 
570
 
 
571
private:
 
572
  bool waiting_on_cond;                 /* Protection against free */
 
573
public:
 
574
  bool isWaitingOnCondition()
 
575
  {
 
576
    return waiting_on_cond;
 
577
  }
 
578
 
600
579
  /*
601
580
    Set of keys in use, implemented as a Bitmap.
602
581
    Excludes keys disabled by ALTER Table ... DISABLE KEYS.
608
587
    event_observers is a class containing all the event plugins that have 
609
588
    registered an interest in this table.
610
589
  */
611
 
  virtual plugin::EventObserverList *getTableObservers() 
 
590
  private:
 
591
  plugin::EventObserverList *event_observers;
 
592
  public:
 
593
  plugin::EventObserverList *getTableObservers() 
612
594
  { 
613
 
    return NULL;
 
595
    return event_observers;
614
596
  }
615
597
  
616
 
  virtual void setTableObservers(plugin::EventObserverList *) 
617
 
  { }
 
598
  void setTableObservers(plugin::EventObserverList *observers) 
 
599
  { 
 
600
    event_observers= observers;
 
601
  }
618
602
  
619
603
  /*
620
604
    Set share's identifier information.
625
609
    NOTES
626
610
  */
627
611
 
628
 
  void setIdentifier(const identifier::Table &identifier_arg);
 
612
  void setIdentifier(TableIdentifier &identifier_arg);
 
613
 
 
614
  inline bool honor_global_locks()
 
615
  {
 
616
    return (table_category == TABLE_CATEGORY_USER);
 
617
  }
 
618
 
629
619
 
630
620
  /*
631
621
    Initialize share for temporary tables
646
636
private:
647
637
  void init(const char *new_table_name,
648
638
            const char *new_path);
 
639
public:
649
640
 
650
 
protected:
651
641
  void open_table_error(int pass_error, int db_errno, int pass_errarg);
652
642
 
653
 
public:
654
 
 
655
 
  static TableShare::shared_ptr getShareCreate(Session *session, 
656
 
                                               const identifier::Table &identifier,
657
 
                                               int &error);
 
643
  static void cacheStart(void);
 
644
  static void release(TableShare *share);
 
645
  static void release(TableIdentifier &identifier);
 
646
  static const TableDefinitionCache &getCache();
 
647
  static TableShare *getShare(TableIdentifier &identifier);
 
648
  static TableShare *getShareCreate(Session *session, 
 
649
                                    TableIdentifier &identifier,
 
650
                                    int *error);
658
651
 
659
652
  friend std::ostream& operator<<(std::ostream& output, const TableShare &share)
660
653
  {
671
664
    return output;  // for multiple << operators.
672
665
  }
673
666
 
674
 
protected:
675
 
  friend class drizzled::table::Singular;
676
 
 
677
 
  Field *make_field(const message::Table::Field &pfield,
678
 
                    unsigned char *ptr,
 
667
  Field *make_field(unsigned char *ptr,
679
668
                    uint32_t field_length,
680
669
                    bool is_nullable,
681
670
                    unsigned char *null_pos,
682
671
                    unsigned char null_bit,
683
672
                    uint8_t decimals,
684
673
                    enum_field_types field_type,
685
 
                    const charset_info_st * field_charset,
 
674
                    const CHARSET_INFO * field_charset,
686
675
                    Field::utype unireg_check,
687
676
                    TYPELIB *interval,
688
677
                    const char *field_name);
689
678
 
690
 
  Field *make_field(const message::Table::Field &pfield,
691
 
                    unsigned char *ptr,
692
 
                    uint32_t field_length,
693
 
                    bool is_nullable,
694
 
                    unsigned char *null_pos,
695
 
                    unsigned char null_bit,
696
 
                    uint8_t decimals,
697
 
                    enum_field_types field_type,
698
 
                    const charset_info_st * field_charset,
699
 
                    Field::utype unireg_check,
700
 
                    TYPELIB *interval,
701
 
                    const char *field_name, 
702
 
                    bool is_unsigned);
703
 
 
704
 
public:
705
 
  int open_table_def(Session& session, const identifier::Table &identifier);
 
679
  int open_table_def(Session& session, TableIdentifier &identifier);
706
680
 
707
681
  int open_table_from_share(Session *session,
708
 
                            const identifier::Table &identifier,
 
682
                            const TableIdentifier &identifier,
709
683
                            const char *alias,
710
684
                            uint32_t db_stat, uint32_t ha_open_flags,
711
685
                            Table &outparam);
 
686
  int parse_table_proto(Session& session, message::Table &table);
712
687
private:
713
 
  int open_table_from_share_inner(Session *session,
714
 
                                  const char *alias,
715
 
                                  uint32_t db_stat,
716
 
                                  Table &outparam);
717
 
  int open_table_cursor_inner(const identifier::Table &identifier,
718
 
                              uint32_t db_stat, uint32_t ha_open_flags,
719
 
                              Table &outparam,
720
 
                              bool &error_reported);
721
 
public:
722
 
  bool parse_table_proto(Session& session, message::Table &table);
723
 
 
724
 
  virtual bool replicate() const
725
 
  {
726
 
    return false;
727
 
  }
 
688
  int inner_parse_table_proto(Session& session, message::Table &table);
728
689
};
729
690
 
730
691
} /* namespace drizzled */
731
692
 
732
 
#endif /* DRIZZLED_TABLE_INSTANCE_BASE_H */
 
693
#endif /* DRIZZLED_TABLE_SHARE_H */