You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
Merge pull request #1793 from benthompson15/MCOL-4483-dev2
MCOL-4483: remove unused directories and fix some default paths.
This commit is contained in:
@@ -116,7 +116,6 @@ chmod 777 @ENGINE_LOGDIR@/install
|
||||
installLogDir=@ENGINE_LOGDIR@/install
|
||||
|
||||
# make sure trace dir is world-writable and sticky
|
||||
test -d @ENGINE_DATADIR@/data || mkdir -p @ENGINE_DATADIR@/data
|
||||
test -d @ENGINE_DATADIR@/data1/systemFiles/dbrm || mkdir -p @ENGINE_DATADIR@/data1/systemFiles/dbrm
|
||||
test -d @ENGINE_DATADIR@/local || mkdir -p @ENGINE_DATADIR@/local
|
||||
test -d @ENGINE_DATADIR@/data1/systemFiles/dataTransaction || rmdir @ENGINE_DATADIR@/data1/systemFiles/dataTransaction >/dev/null 2>&1
|
||||
@@ -126,17 +125,10 @@ chmod -R 1755 @ENGINE_DATADIR@/data1/systemFiles >/dev/null 2>&1
|
||||
chmod 1755 @ENGINE_SYSCONFDIR@/columnstore > /dev/null 2>&1
|
||||
|
||||
#create the bulk-load dirs
|
||||
mkdir -p @ENGINE_DATADIR@/data/bulk/data/import >/dev/null 2>&1
|
||||
mkdir -p @ENGINE_DATADIR@/data/bulk/log >/dev/null 2>&1
|
||||
mkdir -p @ENGINE_DATADIR@/data/bulk/job >/dev/null 2>&1
|
||||
mkdir -p @ENGINE_DATADIR@/data/bulk/rollback >/dev/null 2>&1
|
||||
mkdir -p @ENGINE_DATADIR@/data/bulk/tmpjob >/dev/null 2>&1
|
||||
mkdir -p @ENGINE_LOGDIR@/data/bulk/data/import >/dev/null 2>&1
|
||||
mkdir -p @ENGINE_LOGDIR@/data/bulk/log >/dev/null 2>&1
|
||||
mkdir -p @ENGINE_LOGDIR@/data/bulk/job >/dev/null 2>&1
|
||||
mkdir -p @ENGINE_LOGDIR@/data/bulk/rollback >/dev/null 2>&1
|
||||
mkdir -p @ENGINE_LOGDIR@/data/bulk/tmpjob >/dev/null 2>&1
|
||||
rm -f @ENGINE_DATADIR@/data/bulk/tmpjob/* >/dev/null 2>&1
|
||||
rm -f @ENGINE_LOGDIR@/data/bulk/tmpjob/* >/dev/null 2>&1
|
||||
chmod -R 777 @ENGINE_LOGDIR@/data
|
||||
|
||||
|
@@ -60,7 +60,6 @@ fi
|
||||
|
||||
rm -f @ENGINE_DATADIR@/local/*.columnstore
|
||||
rm -rf @ENGINE_DATADIR@/local/etc/
|
||||
rm -f @ENGINE_DATADIR@/data/bulk/tmp/job/* >/dev/null 2>&1
|
||||
rm -f @ENGINE_DATADIR@/local/moveDbrootTransactionLog
|
||||
rm -rf @ENGINE_LOGDIR@
|
||||
rm -rf /tmp/columnstore_tmp_files
|
||||
|
@@ -18,7 +18,7 @@
|
||||
copy
|
||||
olddir @ENGINE_SYSCONFDIR@/columnstore
|
||||
}
|
||||
@ENGINE_DATADIR@/data/bulk/job/*.xml {
|
||||
@ENGINE_LOGDIR@/data/bulk/job/*.xml {
|
||||
missingok
|
||||
daily
|
||||
rotate 1
|
||||
@@ -26,7 +26,7 @@
|
||||
maxage 30
|
||||
nocreate
|
||||
}
|
||||
@ENGINE_DATADIR@/data/bulk/log/*.err {
|
||||
@ENGINE_LOGDIR@/data/bulk/log/*.err {
|
||||
missingok
|
||||
daily
|
||||
rotate 1
|
||||
@@ -34,7 +34,7 @@
|
||||
maxage 30
|
||||
nocreate
|
||||
}
|
||||
@ENGINE_DATADIR@/data/bulk/log/*.log {
|
||||
@ENGINE_LOGDIR@/data/bulk/log/*.log {
|
||||
missingok
|
||||
daily
|
||||
rotate 1
|
||||
|
@@ -176,9 +176,7 @@ int main(int argc, char* argv[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
//get tmp log directory
|
||||
tmpDir = startup::StartUp::tmpDir();
|
||||
logFile = tmpDir + "/dbbuilder.status";
|
||||
logFile = string(MCSLOGDIR) + "/install/dbbuilder.status";
|
||||
|
||||
buildOption = atoi(argv[optind++]);
|
||||
|
||||
|
@@ -78,23 +78,6 @@ int main(int argc, char** argv)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
std::ostringstream aSS2;
|
||||
aSS2 << aBulkRoot;
|
||||
aSS2 << "/log";
|
||||
std::string logDir = aSS2.str();
|
||||
|
||||
if (!boost::filesystem::exists(logDir.c_str()))
|
||||
{
|
||||
cout << "Creating directory : " << logDir << endl;
|
||||
bool aSuccess = boost::filesystem::create_directories(logDir.c_str());
|
||||
|
||||
if (!aSuccess)
|
||||
{
|
||||
cout << "\nFailed to create directory, please check permissions\n" << endl;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -120,7 +120,7 @@ void Config::checkReload( )
|
||||
|
||||
if ( m_bulkRoot.length() == 0 )
|
||||
{
|
||||
m_bulkRoot = "/var/lib/columnstore";
|
||||
m_bulkRoot = "/var/log/mariadb/columnstore";
|
||||
#ifndef _MSC_VER
|
||||
m_bulkRoot += "/data";
|
||||
#endif
|
||||
|
@@ -1494,7 +1494,7 @@ void WECmdArgs::checkJobIdCase()
|
||||
snprintf(aBuff, sizeof(aBuff), "%s/Job_%s.xml", fJobPath.c_str(),
|
||||
fJobId.c_str());
|
||||
else // for time being
|
||||
snprintf(aBuff, sizeof(aBuff), "/var/lib/columnstore/data/bulk/job/Job_%s.xml",
|
||||
snprintf(aBuff, sizeof(aBuff), "/var/log/mariadb/columnstore/data/bulk/job/Job_%s.xml",
|
||||
fJobId.c_str());
|
||||
|
||||
std::string aJobFileName(aBuff);
|
||||
@@ -1935,23 +1935,6 @@ void WECmdArgs::checkForBulkLogDir(const std::string& BulkRoot)
|
||||
throw runtime_error("Failed to create job directory, check permissions");
|
||||
}
|
||||
}
|
||||
|
||||
std::ostringstream aSS2;
|
||||
aSS2 << BulkRoot;
|
||||
aSS2 << "/log";
|
||||
std::string logDir = aSS2.str();
|
||||
|
||||
if ( !boost::filesystem::exists(logDir.c_str()) )
|
||||
{
|
||||
cout << "Creating directory : " << logDir << endl;
|
||||
bool aSuccess = boost::filesystem::create_directories(logDir.c_str());
|
||||
|
||||
if (!aSuccess)
|
||||
{
|
||||
cout << "\nFailed to create bulk log directory, check permissions\n" << endl;
|
||||
throw runtime_error("Failed to create bulk log directory, check permissions");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user