Fixed a Typo

pull/4528/head
Rahim Kanji 2 years ago
parent 648c3ab61d
commit 407fa7fb6a

@ -541,10 +541,10 @@ using address_t = std::string;
using port_t = unsigned int;
using read_only_t = int;
using current_replication_lag = int;
using replace_current_replication_lag = bool;
using override_replication_lag = bool;
using read_only_server_t = std::tuple<hostname_t,port_t,read_only_t>;
using replication_lag_server_t = std::tuple<hostgroupid_t,address_t,port_t,current_replication_lag,replace_current_replication_lag>;
using replication_lag_server_t = std::tuple<hostgroupid_t,address_t,port_t,current_replication_lag,override_replication_lag>;
enum READ_ONLY_SERVER_T {
ROS_HOSTNAME = 0,

@ -2026,8 +2026,7 @@ void SQLite3_Server::load_replicationlag_table(MySQL_Session* sess) {
if (r->fields[2] == nullptr) {
replicationlag_map[s] = nullptr;
} else {
int* repl_lag = new int;
*repl_lag = atoi(r->fields[2]);
int* repl_lag = new int(atoi(r->fields[2]));
replicationlag_map[s] = std::unique_ptr<int>(repl_lag);
}
}

Loading…
Cancel
Save