You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -20,52 +20,52 @@ using namespace std;
|
||||
|
||||
#include <boost/uuid/uuid.hpp>
|
||||
#include <boost/uuid/uuid_generators.hpp>
|
||||
namespace bu=boost::uuids;
|
||||
namespace bu = boost::uuids;
|
||||
|
||||
#include "querytele.h"
|
||||
using namespace querytele;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
bu::random_generator rg;
|
||||
QueryTeleServerParms qtsp;
|
||||
qtsp.host = "localhost";
|
||||
qtsp.port = 9090;
|
||||
QueryTeleClient qtc(qtsp);
|
||||
QueryTeleClient qtc1(qtc);
|
||||
QueryTeleClient qtc2;
|
||||
qtc2 = qtc;
|
||||
QueryTeleStats qts;
|
||||
qts.query_uuid = rg();
|
||||
qts.msg_type = QueryTeleStats::QT_START;
|
||||
qts.query = "SELECT * FROM NATION;";
|
||||
qtc.postQueryTele(qts);
|
||||
bu::random_generator rg;
|
||||
QueryTeleServerParms qtsp;
|
||||
qtsp.host = "localhost";
|
||||
qtsp.port = 9090;
|
||||
QueryTeleClient qtc(qtsp);
|
||||
QueryTeleClient qtc1(qtc);
|
||||
QueryTeleClient qtc2;
|
||||
qtc2 = qtc;
|
||||
QueryTeleStats qts;
|
||||
qts.query_uuid = rg();
|
||||
qts.msg_type = QueryTeleStats::QT_START;
|
||||
qts.query = "SELECT * FROM NATION;";
|
||||
qtc.postQueryTele(qts);
|
||||
|
||||
sleep(1);
|
||||
sleep(1);
|
||||
|
||||
StepTeleStats sts;
|
||||
sts.query_uuid = qts.query_uuid;
|
||||
sts.step_uuid = rg();
|
||||
sts.msg_type = StepTeleStats::ST_START;
|
||||
qtc.postStepTele(sts);
|
||||
StepTeleStats sts;
|
||||
sts.query_uuid = qts.query_uuid;
|
||||
sts.step_uuid = rg();
|
||||
sts.msg_type = StepTeleStats::ST_START;
|
||||
qtc.postStepTele(sts);
|
||||
|
||||
sleep(1);
|
||||
sleep(1);
|
||||
|
||||
sts.msg_type = StepTeleStats::ST_PROGRESS;
|
||||
qtc.postStepTele(sts);
|
||||
sts.msg_type = StepTeleStats::ST_PROGRESS;
|
||||
qtc.postStepTele(sts);
|
||||
|
||||
sleep(1);
|
||||
sleep(1);
|
||||
|
||||
sts.msg_type = StepTeleStats::ST_SUMMARY;
|
||||
qtc.postStepTele(sts);
|
||||
sts.msg_type = StepTeleStats::ST_SUMMARY;
|
||||
qtc.postStepTele(sts);
|
||||
|
||||
sleep(1);
|
||||
sleep(1);
|
||||
|
||||
qts.msg_type = QueryTeleStats::QT_SUMMARY;
|
||||
qtc.postQueryTele(qts);
|
||||
qts.msg_type = QueryTeleStats::QT_SUMMARY;
|
||||
qtc.postQueryTele(qts);
|
||||
|
||||
sleep(20);
|
||||
sleep(20);
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user