You've already forked mariadb-columnstore-engine
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:
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user