Commit 6e819663 authored by pryanikov's avatar pryanikov

minor fixes

parent 33c7e097
......@@ -147,7 +147,7 @@ void DBReader::EventCallbackNullify(
bool is_delete = false;
switch (event.type_event) {
case slave::RecordSet::Delete: ev->event = "DELETE"; is_delete = true;
case slave::RecordSet::Delete: is_delete = true;
case slave::RecordSet::Update: ev->event = "UPDATE"; break;
case slave::RecordSet::Write: ev->event = "INSERT"; break;
default: return;
......
......@@ -130,8 +130,6 @@ static void init(YAML::Node& cfg)
tpwriter = new TPWriter(
tarantool["host"].as<std::string>(),
tarantool["user"].as<std::string>(),
tarantool["password"].as<std::string>(),
tarantool["binlog_pos_space"].as<unsigned>(),
tarantool["binlog_pos_key"].as<unsigned>(),
tarantool["connect_retry"].as<unsigned>(),
......
......@@ -7,8 +7,6 @@ mysql:
tarantool:
host: 10.5.4.248:5000
user: ""
password: ""
binlog_pos_space: 512
binlog_pos_key: 0
connect_retry: 15 # seconds
......
......@@ -27,16 +27,12 @@ const std::string TPWriter::empty_call("");
TPWriter::TPWriter(
const std::string& host_,
const std::string& user_,
const std::string& password_,
const uint32_t binlog_key_space_,
const unsigned binlog_key_,
const unsigned connect_retry_,
const unsigned sync_retry_
) :
host(host_),
user(user_),
password(password_),
binlog_key_space(binlog_key_space_),
binlog_key(binlog_key_),
connect_retry(connect_retry_),
......
......@@ -16,8 +16,6 @@ class TPWriter
public:
TPWriter(
const std::string& host,
const std::string& user,
const std::string& password,
const uint32_t binlog_key_space,
const unsigned binlog_key,
const unsigned connect_retry,
......@@ -84,8 +82,6 @@ class TPWriter
};
const std::string host;
const std::string user;
const std::string password;
const uint32_t binlog_key_space;
const unsigned binlog_key;
const unsigned connect_retry;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment