1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-01-21 16:43:49 +00:00
parent 6b6411229f
commit 04752ec546
1376 changed files with 393460 additions and 412662 deletions

View File

@ -28,32 +28,30 @@ using namespace boost;
namespace
{
//It's not clear that random_generator is thread-safe, so we'll just mutex it...
// It's not clear that random_generator is thread-safe, so we'll just mutex it...
uuids::random_generator uuidgen;
mutex uuidgenMtx;
}
} // namespace
namespace querytele
{
/*static*/
uuids::uuid QueryTeleClient::genUUID()
{
mutex::scoped_lock lk(uuidgenMtx);
return uuidgen();
mutex::scoped_lock lk(uuidgenMtx);
return uuidgen();
}
/*static*/
int64_t QueryTeleClient::timeNowms()
{
int64_t nowms = -1;
struct timeval tv;
int64_t nowms = -1;
struct timeval tv;
if (gettimeofday(&tv, 0) == 0)
nowms = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
return nowms;
}
if (gettimeofday(&tv, 0) == 0)
nowms = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
return nowms;
}
} // namespace querytele