Skip to content

Commit

Permalink
auth smysql: remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Mar 19, 2024
1 parent f21dbba commit aa5a8c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions modules/gmysqlbackend/gmysqlbackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ void gMySQLBackend::reconnect()
getArg("group"),
mustDo("innodb-read-committed"),
getArgAsNum("timeout"),
mustDo("thread-cleanup"),
mustDo("ssl")));
mustDo("thread-cleanup")));
allocateStatements();
}

Expand Down
4 changes: 2 additions & 2 deletions modules/gmysqlbackend/smysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ void SMySQL::connect()
}

SMySQL::SMySQL(string database, string host, uint16_t port, string msocket, string user,
string password, string group, bool setIsolation, unsigned int timeout, bool threadCleanup, bool clientSSL) :
d_database(std::move(database)), d_host(std::move(host)), d_msocket(std::move(msocket)), d_user(std::move(user)), d_password(std::move(password)), d_group(std::move(group)), d_timeout(timeout), d_port(port), d_setIsolation(setIsolation), d_threadCleanup(threadCleanup), d_clientSSL(clientSSL)
string password, string group, bool setIsolation, unsigned int timeout, bool threadCleanup) :
d_database(std::move(database)), d_host(std::move(host)), d_msocket(std::move(msocket)), d_user(std::move(user)), d_password(std::move(password)), d_group(std::move(group)), d_timeout(timeout), d_port(port), d_setIsolation(setIsolation), d_threadCleanup(threadCleanup)
{
connect();
}
Expand Down
3 changes: 1 addition & 2 deletions modules/gmysqlbackend/smysql.hh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public:
string msocket = "", string user = "",
string password = "", string group = "",
bool setIsolation = false, unsigned int timeout = 10,
bool threadCleanup = false, bool clientSSL = false);
bool threadCleanup = false);

~SMySQL() override;

Expand Down Expand Up @@ -64,5 +64,4 @@ private:
uint16_t d_port;
bool d_setIsolation;
bool d_threadCleanup;
bool d_clientSSL;
};

0 comments on commit aa5a8c4

Please sign in to comment.