~percona-core/percona-server/5.5

« back to all changes in this revision

Viewing changes to Percona-Server/storage/innobase/dict/dict0boot.c

  • Committer: Laurynas Biveinis
  • Date: 2013-09-06 13:24:59 UTC
  • mfrom: (558.8.3 5.5)
  • Revision ID: laurynas.biveinis@percona.com-20130906132459-jfaquw8dbwluzbsl
MergeĀ lp:~akopytov/percona-server/ahi-fixes-5.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
#include "dict0crea.h"
33
33
#include "btr0btr.h"
 
34
#include "btr0sea.h"
34
35
#include "dict0load.h"
35
36
#include "dict0load.h"
36
37
#include "trx0trx.h"
346
347
        dict_mem_index_add_field(index, "KEY_COLS", 0);
347
348
 
348
349
        index->id = DICT_STATS_ID;
 
350
        btr_search_index_init(index);
349
351
 
350
352
        root_page_id = mtr_read_ulint(dict_hdr + DICT_HDR_STATS, MLOG_4BYTES,
351
353
                                      mtr);
481
483
        dict_mem_index_add_field(index, "NAME", 0);
482
484
 
483
485
        index->id = DICT_TABLES_ID;
 
486
        btr_search_index_init(index);
484
487
 
485
488
        error = dict_index_add_to_cache(table, index,
486
489
                                        mtr_read_ulint(dict_hdr
495
498
        dict_mem_index_add_field(index, "ID", 0);
496
499
 
497
500
        index->id = DICT_TABLE_IDS_ID;
 
501
        btr_search_index_init(index);
 
502
 
498
503
        error = dict_index_add_to_cache(table, index,
499
504
                                        mtr_read_ulint(dict_hdr
500
505
                                                       + DICT_HDR_TABLE_IDS,
528
533
        dict_mem_index_add_field(index, "POS", 0);
529
534
 
530
535
        index->id = DICT_COLUMNS_ID;
 
536
        btr_search_index_init(index);
531
537
        error = dict_index_add_to_cache(table, index,
532
538
                                        mtr_read_ulint(dict_hdr
533
539
                                                       + DICT_HDR_COLUMNS,
574
580
        dict_mem_index_add_field(index, "ID", 0);
575
581
 
576
582
        index->id = DICT_INDEXES_ID;
 
583
        btr_search_index_init(index);
577
584
        error = dict_index_add_to_cache(table, index,
578
585
                                        mtr_read_ulint(dict_hdr
579
586
                                                       + DICT_HDR_INDEXES,
602
609
        dict_mem_index_add_field(index, "POS", 0);
603
610
 
604
611
        index->id = DICT_FIELDS_ID;
 
612
        btr_search_index_init(index);
605
613
        error = dict_index_add_to_cache(table, index,
606
614
                                        mtr_read_ulint(dict_hdr
607
615
                                                       + DICT_HDR_FIELDS,