1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-27 21:01:50 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -34,9 +34,9 @@ namespace BRM
{
std::string LogicalPartition::toString() const
{
char buf[256] = {0};
std::sprintf(buf, "%d.%d.%d", pp, seg, dbroot);
return std::string(buf);
char buf[256] = {0};
std::sprintf(buf, "%d.%d.%d", pp, seg, dbroot);
return std::string(buf);
}
/**
@ -44,33 +44,33 @@ std::string LogicalPartition::toString() const
*/
std::ostream& operator<<(std::ostream& output, const LogicalPartition& rhs)
{
output << rhs.pp << "." << rhs.seg << "." << rhs.dbroot;
return output;
output << rhs.pp << "." << rhs.seg << "." << rhs.dbroot;
return output;
}
std::istream& operator>>(std::istream& input, LogicalPartition& rhs)
{
input >> rhs.pp;
input.ignore();
input >> rhs.seg;
input.ignore();
input >> rhs.dbroot;
return input;
input >> rhs.pp;
input.ignore();
input >> rhs.seg;
input.ignore();
input >> rhs.dbroot;
return input;
}
/**
* bytestream operator
*/
messageqcpp::ByteStream& operator<<(messageqcpp::ByteStream &bs, const LogicalPartition& rhs)
messageqcpp::ByteStream& operator<<(messageqcpp::ByteStream& bs, const LogicalPartition& rhs)
{
rhs.serialize(bs);
return bs;
rhs.serialize(bs);
return bs;
}
messageqcpp::ByteStream& operator>>(messageqcpp::ByteStream &bs, LogicalPartition& rhs)
messageqcpp::ByteStream& operator>>(messageqcpp::ByteStream& bs, LogicalPartition& rhs)
{
rhs.unserialize(bs);
return bs;
rhs.unserialize(bs);
return bs;
}
}