1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +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

@@ -33,26 +33,27 @@ namespace redistribute
void Redistribute::handleRedistributeMessage(ByteStream& bs, IOSocket& ios)
{
// consume the WES message id
ByteStream::byte wesMsgId;
bs >> wesMsgId;
// consume the WES message id
ByteStream::byte wesMsgId;
bs >> wesMsgId;
// peek at the message header
const RedistributeMsgHeader* h = (const RedistributeMsgHeader*) bs.buf();
switch (h->messageId)
{
case RED_CNTL_START:
case RED_CNTL_STATUS:
case RED_CNTL_STOP:
case RED_CNTL_CLEAR:
case RED_CNTL_RESP:
RedistributeControl::instance()->handleUIMsg(bs, ios);
break;
// peek at the message header
const RedistributeMsgHeader* h = (const RedistributeMsgHeader*) bs.buf();
default:
RedistributeControl::instance()->handleJobMsg(bs, ios);
break;
}
switch (h->messageId)
{
case RED_CNTL_START:
case RED_CNTL_STATUS:
case RED_CNTL_STOP:
case RED_CNTL_CLEAR:
case RED_CNTL_RESP:
RedistributeControl::instance()->handleUIMsg(bs, ios);
break;
default:
RedistributeControl::instance()->handleJobMsg(bs, ios);
break;
}
}