You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
merge
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2014 InfiniDB, Inc.
|
||||
/* Copyright (C) 2016 MariaDB, Corporation
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
@ -1456,7 +1456,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
int id = *pt;
|
||||
string DBrootID = "DBRoot" + oam.itoa(id);;
|
||||
string pathID = "/usr/local/MariaDB/Columnstore/data" + oam.itoa(id);
|
||||
string pathID = "/usr/local/mariadb/columnstore/data" + oam.itoa(id);
|
||||
|
||||
try {
|
||||
sysConfigNew->setConfig(SystemSection, DBrootID, pathID);
|
||||
@ -1528,7 +1528,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
int id = *pt;
|
||||
string DBrootID = "DBRoot" + oam.itoa(id);;
|
||||
string pathID = "/usr/local/MariaDB/Columnstore/data" + oam.itoa(id);
|
||||
string pathID = "/usr/local/mariadb/columnstore/data" + oam.itoa(id);
|
||||
|
||||
try {
|
||||
sysConfigNew->setConfig(SystemSection, DBrootID, pathID);
|
||||
@ -1596,7 +1596,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
string DBrootID = "DBRoot" + oam.itoa(i);
|
||||
string pathID = "/usr/local/MariaDB/Columnstore/data" + oam.itoa(i);
|
||||
string pathID = "/usr/local/mariadb/columnstore/data" + oam.itoa(i);
|
||||
|
||||
try {
|
||||
sysConfigNew->setConfig(SystemSection, DBrootID, pathID);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2014 InfiniDB, Inc.
|
||||
/* Copyright (C) 2016 MariaDB, Corporation
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
@ -197,7 +197,7 @@ int main(int argc, char *argv[])
|
||||
if ( product == "columnstore" ) {
|
||||
company = "MariaDB-Columnstore";
|
||||
calpontPackagename = "mariadb-columnstore";
|
||||
installLocation = "/MariaDB/Columnstore";
|
||||
installLocation = "/mariadb/columnstore";
|
||||
adminCommand = "mcsadmin";
|
||||
}
|
||||
else if ( product != "infinidb" )
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2014 InfiniDB, Inc.
|
||||
/* Copyright (C) 2016 MariaDB, Corporation
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
@ -213,7 +213,7 @@ int main(int argc, char *argv[])
|
||||
exit (-1);
|
||||
}
|
||||
|
||||
cmd = "./remote_scp_get.sh " + parentOAMModuleIPAddr + " " + password + " /usr/local/MariaDB/Columnstore/etc/Calpont.xml 0 ";
|
||||
cmd = "./remote_scp_get.sh " + parentOAMModuleIPAddr + " " + password + " /usr/local/mariadb/columnstore/etc/Calpont.xml 0 ";
|
||||
rtnCode = system(cmd.c_str());
|
||||
if (rtnCode == 0) {
|
||||
cmd = "mv Calpont.xml systems/" + systemName + "/.";
|
||||
@ -507,7 +507,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
string DBrootID = "DBRoot" + oam.itoa(i);
|
||||
string pathID = "/usr/local/MariaDB/Columnstore/data" + oam.itoa(i);
|
||||
string pathID = "/usr/local/mariadb/columnstore/data" + oam.itoa(i);
|
||||
|
||||
try {
|
||||
sysConfig->setConfig(SystemSection, DBrootID, pathID);
|
||||
|
@ -143,7 +143,7 @@ if { $CONFIGFILE != "NULL"} {
|
||||
# copy over Calpont.xml file
|
||||
#
|
||||
send_user "Copy Calpont Configuration File "
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/MariaDB/Columnstore/etc/Calpont.xml.rpmsave\n"
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/mariadb/columnstore/etc/Calpont.xml.rpmsave\n"
|
||||
expect -re "word: "
|
||||
# send the password
|
||||
send "$PASSWORD\n"
|
||||
@ -153,7 +153,7 @@ if { $CONFIGFILE != "NULL"} {
|
||||
-re "Permission denied, please try again" { send_user "FAILED: Invalid password\n" ; exit -1 }
|
||||
-re "No such file or directory" { send_user "FAILED: Invalid package\n" ; exit -1 }
|
||||
}
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/MariaDB/Columnstore/etc/Calpont.xml\n"
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/mariadb/columnstore/etc/Calpont.xml\n"
|
||||
expect -re "word: "
|
||||
# send the password
|
||||
send "$PASSWORD\n"
|
||||
@ -175,7 +175,7 @@ if { $CONFIGFILE != "NULL"} {
|
||||
# rename previous installed config file
|
||||
#
|
||||
send_user "Copy RPM-saved Calpont Configuration File "
|
||||
send "ssh $USERNAME@$SERVER 'cd /usr/local/MariaDB/Columnstore/etc/;mv -f Calpont.xml Calpont.xml.install;cp -v Calpont.xml.rpmsave Calpont.xml'\n"
|
||||
send "ssh $USERNAME@$SERVER 'cd /usr/local/mariadb/columnstore/etc/;mv -f Calpont.xml Calpont.xml.install;cp -v Calpont.xml.rpmsave Calpont.xml'\n"
|
||||
expect -re "word: "
|
||||
# password for ssh
|
||||
send "$PASSWORD\n"
|
||||
|
@ -189,7 +189,7 @@ if { $CONFIGFILE != "NULL"} {
|
||||
# copy over Calpont.xml file
|
||||
#
|
||||
send_user "Copy Calpont Configuration File "
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/MariaDB/Columnstore/etc/Calpont.xml\n"
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/mariadb/columnstore/etc/Calpont.xml\n"
|
||||
expect -re "word: "
|
||||
# send the password
|
||||
send "$PASSWORD\n"
|
||||
@ -206,7 +206,7 @@ if { $CONFIGFILE != "NULL"} {
|
||||
# rename previous installed config file
|
||||
#
|
||||
send_user "Copy RPM-saved Calpont Configuration File "
|
||||
send "ssh $USERNAME@$SERVER 'cd /usr/local/MariaDB/Columnstore/etc/;mv -f Calpont.xml Calpont.xml.install;cp -v Calpont.xml.rpmsave Calpont.xml'\n"
|
||||
send "ssh $USERNAME@$SERVER 'cd /usr/local/mariadb/columnstore/etc/;mv -f Calpont.xml Calpont.xml.install;cp -v Calpont.xml.rpmsave Calpont.xml'\n"
|
||||
expect -re "word: "
|
||||
# password for ssh
|
||||
send "$PASSWORD\n"
|
||||
|
@ -130,7 +130,7 @@ if { $CONFIGFILE != "NULL"} {
|
||||
# copy over Calpont.xml file
|
||||
#
|
||||
send_user "Copy Calpont Configuration File "
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/MariaDB/Columnstore/etc/Calpont.xml.rpmsave\n"
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/mariadb/columnstore/etc/Calpont.xml.rpmsave\n"
|
||||
expect -re "word: "
|
||||
# send the password
|
||||
send "$PASSWORD\n"
|
||||
@ -140,7 +140,7 @@ if { $CONFIGFILE != "NULL"} {
|
||||
-re "Permission denied, please try again" { send_user "FAILED: Invalid password\n" ; exit -1 }
|
||||
-re "No such file or directory" { send_user "FAILED: Invalid package\n" ; exit -1 }
|
||||
}
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/MariaDB/Columnstore/etc/Calpont.xml\n"
|
||||
send "scp $CONFIGFILE $USERNAME@$SERVER:/usr/local/mariadb/columnstore/etc/Calpont.xml\n"
|
||||
expect -re "word: "
|
||||
# send the password
|
||||
send "$PASSWORD\n"
|
||||
@ -162,7 +162,7 @@ if { $CONFIGFILE != "NULL"} {
|
||||
# rename previous installed config file
|
||||
#
|
||||
send_user "Copy RPM-saved Calpont Configuration File "
|
||||
send "ssh $USERNAME@$SERVER 'cd /usr/local/MariaDB/Columnstore/etc/;mv -f Calpont.xml Calpont.xml.install;cp -v Calpont.xml.rpmsave Calpont.xml'\n"
|
||||
send "ssh $USERNAME@$SERVER 'cd /usr/local/mariadb/columnstore/etc/;mv -f Calpont.xml Calpont.xml.install;cp -v Calpont.xml.rpmsave Calpont.xml'\n"
|
||||
expect -re "word: "
|
||||
# password for ssh
|
||||
send "$PASSWORD\n"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2014 InfiniDB, Inc.
|
||||
/* Copyright (C) 2016 MariaDB, Corporation
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
|
@ -9,7 +9,7 @@ def find_paths():
|
||||
config_file = os.environ['CALPONT_CONFIG_FILE']
|
||||
except KeyError:
|
||||
try:
|
||||
config_file = '/usr/local/MariaDB/Columnstore/etc'
|
||||
config_file = '/usr/local/mariadb/columnstore/etc'
|
||||
os.lstat(config_file)
|
||||
except:
|
||||
sys.exit('No config file available')
|
||||
|
@ -241,7 +241,7 @@ bool TestRunner::runTest( IDBDataFile::Types filetype, unsigned open_opts )
|
||||
for( int i = 0; i < m_opts.numDbRoots; ++i )
|
||||
{
|
||||
ostringstream dbroot;
|
||||
dbroot << "/usr/local/MariaDB/Columnstore/data" << i+1;
|
||||
dbroot << "/usr/local/mariadb/columnstore/data" << i+1;
|
||||
if( !fs.exists(dbroot.str().c_str()) )
|
||||
{
|
||||
ostringstream msg;
|
||||
|
@ -37,7 +37,7 @@ elif [ $(expr 'release' : "$cmd") -gt 2 ]; then
|
||||
INST=$4
|
||||
fi
|
||||
if [ -z "$INSTALLDIR" ]; then
|
||||
INSTALLDIR="/usr/local/MariaDB/Columnstore"
|
||||
INSTALLDIR="/usr/local/mariadb/columnstore"
|
||||
if [ $INST ]; then
|
||||
INSTALLDIR=$INST
|
||||
fi
|
||||
|
@ -9,14 +9,14 @@ if [ -z "$INFINIDB_INSTALL_DIR" ]; then
|
||||
fi
|
||||
|
||||
if [ -z "$INFINIDB_INSTALL_DIR" ]; then
|
||||
INFINIDB_INSTALL_DIR=/usr/local/MariaDB/Columnstore
|
||||
INFINIDB_INSTALL_DIR=/usr/local/mariadb/columnstore
|
||||
fi
|
||||
|
||||
export INFINIDB_INSTALL_DIR=$INFINIDB_INSTALL_DIR
|
||||
|
||||
InstallDir=$INFINIDB_INSTALL_DIR
|
||||
|
||||
if [ $InstallDir != "/usr/local/MariaDB/Columnstore" ]; then
|
||||
if [ $InstallDir != "/usr/local/mariadb/columnstore" ]; then
|
||||
export PATH=$InstallDir/bin:$InstallDir/mysql/bin:/bin:/usr/bin
|
||||
export LD_LIBRARY_PATH=$InstallDir/lib:$InstallDir/mysql/lib/mysql
|
||||
fi
|
||||
|
Reference in New Issue
Block a user