You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-06-13 16:01:32 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -10,29 +10,31 @@ using namespace config;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
Config* cf = Config::makeConfig("./Columnstore.xml");
|
||||
MessageQueueClient mqc("server1", cf);
|
||||
Config* cf = Config::makeConfig("./Columnstore.xml");
|
||||
MessageQueueClient mqc("server1", cf);
|
||||
|
||||
ByteStream obs;
|
||||
string msg("Hello, world!");
|
||||
ByteStream ibs;
|
||||
uint32_t qb;
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
obs.restart();
|
||||
obs << msg;
|
||||
cout << "writing " << obs.length() << " bytes to " << mqc.addr2String() << endl;
|
||||
mqc.write(obs);
|
||||
ibs = mqc.read();
|
||||
ibs >> qb;
|
||||
if (qb != 0)
|
||||
{
|
||||
string emsg("server did not ack message!");
|
||||
cerr << emsg << endl;
|
||||
throw runtime_error(emsg);
|
||||
}
|
||||
}
|
||||
ByteStream obs;
|
||||
string msg("Hello, world!");
|
||||
ByteStream ibs;
|
||||
uint32_t qb;
|
||||
|
||||
return 0;
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
obs.restart();
|
||||
obs << msg;
|
||||
cout << "writing " << obs.length() << " bytes to " << mqc.addr2String() << endl;
|
||||
mqc.write(obs);
|
||||
ibs = mqc.read();
|
||||
ibs >> qb;
|
||||
|
||||
if (qb != 0)
|
||||
{
|
||||
string emsg("server did not ack message!");
|
||||
cerr << emsg << endl;
|
||||
throw runtime_error(emsg);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user