You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -38,31 +38,35 @@ namespace multicast
|
||||
{
|
||||
|
||||
Multicast::Multicast() :
|
||||
fPMCount(1),
|
||||
fIFName("eth0"),
|
||||
fPortBase(9000),
|
||||
fBufSize(8 * 1024 * 1024)
|
||||
fPMCount(1),
|
||||
fIFName("eth0"),
|
||||
fPortBase(9000),
|
||||
fBufSize(8 * 1024 * 1024)
|
||||
{
|
||||
int tmp;
|
||||
string stmp;
|
||||
int tmp;
|
||||
string stmp;
|
||||
|
||||
Config* cf = Config::makeConfig();
|
||||
Config* cf = Config::makeConfig();
|
||||
|
||||
tmp = Config::fromText(cf->getConfig("PrimitiveServers", "Count"));
|
||||
if (tmp > 0) fPMCount = tmp;
|
||||
tmp = Config::fromText(cf->getConfig("PrimitiveServers", "Count"));
|
||||
|
||||
stmp = cf->getConfig("Multicast", "Interface");
|
||||
if (!stmp.empty()) fIFName = stmp;
|
||||
if (tmp > 0) fPMCount = tmp;
|
||||
|
||||
tmp = Config::fromText(cf->getConfig("Multicast", "PortBase"));
|
||||
if (tmp > 0) fPortBase = tmp;
|
||||
stmp = cf->getConfig("Multicast", "Interface");
|
||||
|
||||
tmp = Config::fromText(cf->getConfig("Multicast", "BufSize"));
|
||||
if (tmp > 0) fBufSize = tmp;
|
||||
if (!stmp.empty()) fIFName = stmp;
|
||||
|
||||
tmp = Config::fromText(cf->getConfig("Multicast", "PortBase"));
|
||||
|
||||
if (tmp > 0) fPortBase = tmp;
|
||||
|
||||
tmp = Config::fromText(cf->getConfig("Multicast", "BufSize"));
|
||||
|
||||
if (tmp > 0) fBufSize = tmp;
|
||||
}
|
||||
|
||||
MulticastReceiver::MulticastReceiver() :
|
||||
fPimpl(0)
|
||||
fPimpl(0)
|
||||
{
|
||||
}
|
||||
|
||||
@ -72,12 +76,12 @@ MulticastReceiver::~MulticastReceiver()
|
||||
|
||||
SBS MulticastReceiver::receive()
|
||||
{
|
||||
throw runtime_error("Multicast is not available");
|
||||
return fByteStream;
|
||||
throw runtime_error("Multicast is not available");
|
||||
return fByteStream;
|
||||
}
|
||||
|
||||
MulticastSender::MulticastSender() :
|
||||
fPimpl(0)
|
||||
fPimpl(0)
|
||||
{
|
||||
}
|
||||
|
||||
@ -87,7 +91,7 @@ MulticastSender::~MulticastSender()
|
||||
|
||||
void MulticastSender::send(const ByteStream& msg)
|
||||
{
|
||||
throw runtime_error("Multicast is not available");
|
||||
throw runtime_error("Multicast is not available");
|
||||
}
|
||||
|
||||
} //namespace multicast
|
||||
|
Reference in New Issue
Block a user