format code

This commit is contained in:
groot 2019-11-05 11:33:14 +08:00
parent 534e6e504a
commit 7ccd442116
2 changed files with 4 additions and 4 deletions

View File

@ -173,7 +173,7 @@ MySQLMetaImpl::~MySQLMetaImpl() {
Status
MySQLMetaImpl::NextTableId(std::string& table_id) {
std::lock_guard<std::mutex> lock(genid_mutex_); // avoid duplicated id
std::lock_guard<std::mutex> lock(genid_mutex_); // avoid duplicated id
std::stringstream ss;
SimpleIDGenerator g;
ss << g.GetNextIDNumber();
@ -183,7 +183,7 @@ MySQLMetaImpl::NextTableId(std::string& table_id) {
Status
MySQLMetaImpl::NextFileId(std::string& file_id) {
std::lock_guard<std::mutex> lock(genid_mutex_); // avoid duplicated id
std::lock_guard<std::mutex> lock(genid_mutex_); // avoid duplicated id
std::stringstream ss;
SimpleIDGenerator g;
ss << g.GetNextIDNumber();

View File

@ -97,7 +97,7 @@ SqliteMetaImpl::~SqliteMetaImpl() {
Status
SqliteMetaImpl::NextTableId(std::string &table_id) {
std::lock_guard<std::mutex> lock(genid_mutex_); // avoid duplicated id
std::lock_guard<std::mutex> lock(genid_mutex_); // avoid duplicated id
std::stringstream ss;
SimpleIDGenerator g;
ss << g.GetNextIDNumber();
@ -107,7 +107,7 @@ SqliteMetaImpl::NextTableId(std::string &table_id) {
Status
SqliteMetaImpl::NextFileId(std::string &file_id) {
std::lock_guard<std::mutex> lock(genid_mutex_); // avoid duplicated id
std::lock_guard<std::mutex> lock(genid_mutex_); // avoid duplicated id
std::stringstream ss;
SimpleIDGenerator g;
ss << g.GetNextIDNumber();