~stewart/drizzle/use-catalog-for-path

« back to all changes in this revision

Viewing changes to plugin/slave/queue_producer.h

  • Committer: Lee Bieber
  • Date: 2011-04-02 03:51:56 UTC
  • mfrom: (2260.1.1 revert_slave)
  • Revision ID: kalebral@gmail.com-20110402035156-lhfvo7o6yqtli0xs
Merge Shrews - Revert the multi-master slave plugin changes.

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),
41
40
    _last_return(DRIZZLE_RETURN_OK),
42
41
    _is_connected(false),
43
42
    _saved_max_commit_id(0),
96
95
    _saved_max_commit_id= value;
97
96
  }
98
97
 
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
 
 
114
98
private:
115
99
  /** Number of seconds to sleep between checking queue for messages */
116
100
  uint32_t _check_interval;
121
105
  std::string _master_user;
122
106
  std::string _master_pass;
123
107
 
124
 
  uint32_t _master_id;
125
 
 
126
108
  drizzle_st _drizzle;
127
109
  drizzle_con_st _connection;
128
110
  drizzle_return_t _last_return;