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
MCOL-520
This commit is contained in:
@@ -6195,7 +6195,9 @@ int getSelectPlan(gp_walk_info& gwi, SELECT_LEX& select_lex, SCSEP& csep, bool i
|
||||
if (filters)
|
||||
{
|
||||
csep->filters(filters);
|
||||
filters->drawTree("/tmp/filter1.dot");
|
||||
std::string aTmpDir(startup::StartUp::tmpDir());
|
||||
aTmpDir = aTmpDir + "/filter1.dot";
|
||||
filters->drawTree(aTmpDir);
|
||||
}
|
||||
|
||||
gwi.clauseType = SELECT;
|
||||
@@ -8620,7 +8622,9 @@ int getGroupPlan(gp_walk_info& gwi, SELECT_LEX& select_lex, SCSEP& csep, cal_gro
|
||||
{
|
||||
csep->filters(filters);
|
||||
#ifdef DEBUG_WALK_COND
|
||||
filters->drawTree("/tmp/filter1.dot");
|
||||
std::string aTmpDir(startup::StartUp::tmpDir());
|
||||
aTmpDir = aTmpDir + "/filter1.dot";
|
||||
filters->drawTree(aTmpDir);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -3056,7 +3056,9 @@ int ha_calpont_impl_rnd_init(TABLE* table)
|
||||
|
||||
#ifdef PLAN_HEX_FILE
|
||||
// plan serialization
|
||||
ifstream ifs("/tmp/li1-plan.hex");
|
||||
string tmpDir = aTmpDir + "/li1-plan.hex";
|
||||
|
||||
ifstream ifs(tmpDir);
|
||||
ByteStream bs1;
|
||||
ifs >> bs1;
|
||||
ifs.close();
|
||||
@@ -3982,6 +3984,8 @@ void ha_calpont_impl_start_bulk_insert(ha_rows rows, TABLE* table)
|
||||
//set up for cpimport
|
||||
std::vector<char*> Cmds;
|
||||
std::string aCmdLine(startup::StartUp::installDir());
|
||||
std::string aTmpDir(startup::StartUp::tmpDir());
|
||||
|
||||
//If local module type is not PM and Local PM query is set, error out
|
||||
char escapechar[2] = "";
|
||||
|
||||
@@ -4390,6 +4394,8 @@ int ha_calpont_impl_end_bulk_insert(bool abort, TABLE* table)
|
||||
{
|
||||
THD* thd = current_thd;
|
||||
|
||||
std::string aTmpDir(startup::StartUp::tmpDir());
|
||||
|
||||
if (!thd->infinidb_vtable.cal_conn_info)
|
||||
thd->infinidb_vtable.cal_conn_info = (void*)(new cal_connection_info());
|
||||
|
||||
@@ -4516,7 +4522,7 @@ int ha_calpont_impl_end_bulk_insert(bool abort, TABLE* table)
|
||||
rc = 1;
|
||||
ifstream dmlFile;
|
||||
ostringstream oss;
|
||||
oss << "/tmp/" << ci->tableOid << ".txt";
|
||||
oss << aTmpDir << ci->tableOid << ".txt";
|
||||
dmlFile.open(oss.str().c_str());
|
||||
|
||||
if (dmlFile.is_open())
|
||||
@@ -4533,7 +4539,7 @@ int ha_calpont_impl_end_bulk_insert(bool abort, TABLE* table)
|
||||
rc = 1;
|
||||
ifstream dmlFile;
|
||||
ostringstream oss;
|
||||
oss << "/tmp/" << ci->tableOid << ".txt";
|
||||
oss << aTmpDir << ci->tableOid << ".txt";
|
||||
dmlFile.open(oss.str().c_str());
|
||||
|
||||
if (dmlFile.is_open())
|
||||
@@ -4567,7 +4573,7 @@ int ha_calpont_impl_end_bulk_insert(bool abort, TABLE* table)
|
||||
//get extra warning count if any
|
||||
ifstream dmlFile;
|
||||
ostringstream oss;
|
||||
oss << "/tmp/" << ci->tableOid << ".txt";
|
||||
oss << aTmpDir << ci->tableOid << ".txt";
|
||||
dmlFile.open(oss.str().c_str());
|
||||
int totalWarnCount = 0;
|
||||
int colWarns = 0;
|
||||
@@ -5235,7 +5241,9 @@ int ha_calpont_impl_group_by_init(ha_calpont_group_by_handler* group_hand, TABLE
|
||||
|
||||
#ifdef PLAN_HEX_FILE
|
||||
// plan serialization
|
||||
ifstream ifs("/tmp/li1-plan.hex");
|
||||
string tmpDir = aTmpDir + "/li1-plan.hex";
|
||||
|
||||
ifstream ifs(tmpDir);
|
||||
ByteStream bs1;
|
||||
ifs >> bs1;
|
||||
ifs.close();
|
||||
|
@@ -17,6 +17,8 @@ for arg in "$@"; do
|
||||
elif [ `expr -- "$arg" : '--installdir='` -eq 13 ]; then
|
||||
installdir="`echo $arg | awk -F= '{print $2}'`"
|
||||
prefix=`dirname $installdir`
|
||||
elif [ `expr -- "$arg" : '--tmpdir='` -eq 9 ]; then
|
||||
tmpdir="`echo $arg | awk -F= '{print $2}'`"
|
||||
else
|
||||
echo "ignoring unknown argument: $arg" 1>&2
|
||||
fi
|
||||
@@ -24,7 +26,7 @@ done
|
||||
|
||||
df=$installdir/mysql/my.cnf
|
||||
|
||||
$installdir/mysql/bin/mysql --defaults-extra-file=$df --force --user=root mysql 2>/tmp/mysql_install.log <<EOD
|
||||
$installdir/mysql/bin/mysql --defaults-extra-file=$df --force --user=root mysql 2> ${tmpdir}mysql_install.log <<EOD
|
||||
INSTALL PLUGIN columnstore SONAME 'libcalmysql.so';
|
||||
INSTALL PLUGIN infinidb SONAME 'libcalmysql.so';
|
||||
INSTALL PLUGIN columnstore_tables SONAME 'is_columnstore_tables.so';
|
||||
|
@@ -54,6 +54,8 @@ using namespace querystats;
|
||||
|
||||
#include "sm.h"
|
||||
|
||||
#include "installdir.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
using namespace sm;
|
||||
@@ -254,7 +256,10 @@ void sighandler(int sig_num)
|
||||
FILE* p;
|
||||
char buf[1024];
|
||||
|
||||
if ((p = fopen("/tmp/f1.dat", "a")) != NULL)
|
||||
string tmpDir = startup::StartUp::tmpDir() + "/f1.dat";
|
||||
const char *cstr = tmpDir.c_str();
|
||||
|
||||
if ((p = fopen(cstr, "a")) != NULL)
|
||||
{
|
||||
snprintf(buf, 1024, "sighandler() hit with %d\n", sig_num);
|
||||
fwrite(buf, 1, strlen(buf), p);
|
||||
|
Reference in New Issue
Block a user