~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/create_replication.h

  • Committer: Stewart Smith
  • Author(s): Vasil Dimov, Stewart Smith
  • Date: 2010-12-20 02:24:00 UTC
  • mto: (2021.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2022.
  • Revision ID: stewart@flamingspork.com-20101220022400-0p9lvvppwgaowdju
Merge Revision revid:vasil.dimov@oracle.com-20101102165720-164z3666y3tut4c2 from MySQL InnoDB

Original revid:vasil.dimov@oracle.com-20101102165720-164z3666y3tut4c2

Original Authors: Vasil Dimov <vasil.dimov@oracle.com>
Original commit message:
Fix Bug#53046 dict_update_statistics_low can still be run concurrently on same table

Replace the array of mutexes that used to protect
dict_index_t::stat_n_diff_key_vals[] with an array of rw locks that protects
all the stats related members in dict_table_t and all of its indexes.

Approved by:    Jimmy (rb://503)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
#include "read_replication.h"
33
33
 
34
 
#include <drizzled/message/table.pb.h>
35
 
#include <drizzled/table.h>
36
 
#include <drizzled/charset_info.h>
37
 
 
38
34
struct read_replication_state_st {
39
35
  mtr_t mtr;
40
36
  btr_pcur_t pcur;
45
41
UNIV_INTERN ulint dict_create_sys_replication_log(void);
46
42
 
47
43
UNIV_INTERN ulint insert_replication_message(const char *message, size_t size, 
48
 
                                             trx_t *trx, uint64_t trx_id, 
49
 
                                             uint64_t end_timestamp, bool is_end_segment,
50
 
                                             uint32_t seg_id);
 
44
                                             trx_t *trx, uint64_t trx_id);
51
45
 
52
46
UNIV_INTERN struct read_replication_state_st *replication_read_init(void);
53
47
UNIV_INTERN void replication_read_deinit(struct read_replication_state_st *);
54
48
UNIV_INTERN struct read_replication_return_st replication_read_next(struct read_replication_state_st *);
55
49
 
56
 
UNIV_INTERN int read_replication_log_table_message(const char* table_name, drizzled::message::Table *table_message);
57
 
 
58
 
UNIV_INTERN void convert_to_mysql_format(byte* out, const byte* in, int len);
59
 
 
60
50
#endif