1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-02-11 12:24:40 +00:00
parent 509f005be7
commit 7c808317dc
1367 changed files with 394342 additions and 413129 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