1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-02-11 12:24:40 +00:00
parent 509f005be7
commit 7c808317dc
1367 changed files with 394342 additions and 413129 deletions

View File

@ -16,9 +16,8 @@
MA 02110-1301, USA. */
/*
* $Id: we_redistribute.cpp 4450 2013-01-21 14:13:24Z rdempsey $
*/
* $Id: we_redistribute.cpp 4450 2013-01-21 14:13:24Z rdempsey $
*/
#include "messagequeue.h"
#include "bytestream.h"
@ -30,36 +29,27 @@ using namespace messageqcpp;
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();
// 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;
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;
}
default: RedistributeControl::instance()->handleJobMsg(bs, ios); break;
}
}
}
} // namespace redistribute
// vim:ts=4 sw=4: