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:
@ -9,30 +9,33 @@ using namespace config;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
Config* cf = Config::makeConfig("./Columnstore.xml");
|
||||
MessageQueueServer mqs("server1", cf);
|
||||
Config* cf = Config::makeConfig("./Columnstore.xml");
|
||||
MessageQueueServer mqs("server1", cf);
|
||||
|
||||
cout << "server ready..." << endl;
|
||||
cout << "server ready..." << endl;
|
||||
|
||||
IOSocket ios;
|
||||
ByteStream ibs;
|
||||
ByteStream obs;
|
||||
uint32_t qb = 0;
|
||||
while (1)
|
||||
{
|
||||
ios = mqs.accept();
|
||||
ibs = ios.read();
|
||||
while (ibs.length() > 0)
|
||||
{
|
||||
cout << "read " << ibs.length() << " bytes from " << ios << endl;
|
||||
obs.restart();
|
||||
obs << qb;
|
||||
ios.write(obs);
|
||||
ibs = ios.read();
|
||||
}
|
||||
ios.close();
|
||||
}
|
||||
IOSocket ios;
|
||||
ByteStream ibs;
|
||||
ByteStream obs;
|
||||
uint32_t qb = 0;
|
||||
|
||||
return 0;
|
||||
while (1)
|
||||
{
|
||||
ios = mqs.accept();
|
||||
ibs = ios.read();
|
||||
|
||||
while (ibs.length() > 0)
|
||||
{
|
||||
cout << "read " << ibs.length() << " bytes from " << ios << endl;
|
||||
obs.restart();
|
||||
obs << qb;
|
||||
ios.write(obs);
|
||||
ibs = ios.read();
|
||||
}
|
||||
|
||||
ios.close();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user