~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/slave/queue_producer.h

  • Committer: Lee Bieber
  • Date: 2011-03-28 18:11:45 UTC
  • mfrom: (2254.1.2 build)
  • Revision ID: kalebral@gmail.com-20110328181145-tfsb6s5ozhuvhfoq
Merge Patrick - Tweaked dbqp so that the existing slave tests work.
Merge Stewart - remove over 1000 lines of mysys

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    SQLExecutor("slave", "replication"),
38
38
    _check_interval(5),
39
39
    _master_port(3306),
 
40
    _master_id(0),
40
41
    _last_return(DRIZZLE_RETURN_OK),
41
42
    _is_connected(false),
42
43
    _saved_max_commit_id(0),
95
96
    _saved_max_commit_id= value;
96
97
  }
97
98
 
 
99
  uint64_t cachedMaxCommitId()
 
100
  {
 
101
    return _saved_max_commit_id;
 
102
  }
 
103
 
 
104
  void setMasterId(uint32_t value)
 
105
  {
 
106
    _master_id= value;
 
107
  }
 
108
 
 
109
  uint32_t masterId()
 
110
  {
 
111
    return _master_id;
 
112
  }
 
113
 
98
114
private:
99
115
  /** Number of seconds to sleep between checking queue for messages */
100
116
  uint32_t _check_interval;
105
121
  std::string _master_user;
106
122
  std::string _master_pass;
107
123
 
 
124
  uint32_t _master_id;
 
125
 
108
126
  drizzle_st _drizzle;
109
127
  drizzle_con_st _connection;
110
128
  drizzle_return_t _last_return;