mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-05 02:12:48 +08:00
format code
This commit is contained in:
parent
534e6e504a
commit
7ccd442116
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user