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:
@ -66,36 +66,39 @@ namespace fs = boost::filesystem;
|
||||
|
||||
namespace
|
||||
{
|
||||
DistributedEngineComm *Dec;
|
||||
DistributedEngineComm* Dec;
|
||||
|
||||
void setupCwd()
|
||||
{
|
||||
string workdir = config::Config::makeConfig()->getConfig("SystemConfig", "WorkingDir");
|
||||
if (workdir.length() == 0)
|
||||
workdir = ".";
|
||||
(void)chdir(workdir.c_str());
|
||||
if (access(".", W_OK) != 0)
|
||||
(void)chdir("/tmp");
|
||||
}
|
||||
void setupCwd()
|
||||
{
|
||||
string workdir = config::Config::makeConfig()->getConfig("SystemConfig", "WorkingDir");
|
||||
|
||||
void added_a_pm(int)
|
||||
{
|
||||
LoggingID logid(23, 0, 0);
|
||||
logging::Message::Args args1;
|
||||
logging::Message msg(1);
|
||||
args1.add("DDLProc caught SIGHUP. Resetting connections");
|
||||
msg.format( args1 );
|
||||
logging::Logger logger(logid.fSubsysID);
|
||||
logger.logMessage(LOG_TYPE_DEBUG, msg, logid);
|
||||
Dec->Setup();
|
||||
}
|
||||
if (workdir.length() == 0)
|
||||
workdir = ".";
|
||||
|
||||
(void)chdir(workdir.c_str());
|
||||
|
||||
if (access(".", W_OK) != 0)
|
||||
(void)chdir("/tmp");
|
||||
}
|
||||
|
||||
void added_a_pm(int)
|
||||
{
|
||||
LoggingID logid(23, 0, 0);
|
||||
logging::Message::Args args1;
|
||||
logging::Message msg(1);
|
||||
args1.add("DDLProc caught SIGHUP. Resetting connections");
|
||||
msg.format( args1 );
|
||||
logging::Logger logger(logid.fSubsysID);
|
||||
logger.logMessage(LOG_TYPE_DEBUG, msg, logid);
|
||||
Dec->Setup();
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
// get and set locale language
|
||||
string systemLang = "C";
|
||||
systemLang = funcexp::utf8::idb_setlocale();
|
||||
string systemLang = "C";
|
||||
systemLang = funcexp::utf8::idb_setlocale();
|
||||
|
||||
setupCwd();
|
||||
|
||||
@ -106,22 +109,23 @@ int main(int argc, char* argv[])
|
||||
idbdatafile::IDBPolicy::configIDBPolicy();
|
||||
#endif
|
||||
|
||||
ResourceManager *rm = ResourceManager::instance();
|
||||
Dec = DistributedEngineComm::instance(rm);
|
||||
ResourceManager* rm = ResourceManager::instance();
|
||||
Dec = DistributedEngineComm::instance(rm);
|
||||
#ifndef _MSC_VER
|
||||
/* set up some signal handlers */
|
||||
/* set up some signal handlers */
|
||||
struct sigaction ign;
|
||||
memset(&ign, 0, sizeof(ign));
|
||||
ign.sa_handler = added_a_pm;
|
||||
sigaction(SIGHUP, &ign, 0);
|
||||
ign.sa_handler = SIG_IGN;
|
||||
sigaction(SIGPIPE, &ign, 0);
|
||||
sigaction(SIGHUP, &ign, 0);
|
||||
ign.sa_handler = SIG_IGN;
|
||||
sigaction(SIGPIPE, &ign, 0);
|
||||
#endif
|
||||
|
||||
ddlprocessor::DDLProcessor ddlprocessor(1, 20);
|
||||
|
||||
{
|
||||
Oam oam;
|
||||
|
||||
try
|
||||
{
|
||||
oam.processInitComplete("DDLProc", ACTIVE);
|
||||
@ -154,6 +158,7 @@ int main(int argc, char* argv[])
|
||||
args.add("receiving DDLPackage");
|
||||
message.format( args );
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
// vim:ts=4 sw=4:
|
||||
|
Reference in New Issue
Block a user