You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-26 05:02:32 +03:00
ColumnStore now uses standard bin/lib paths for pretty much everything. Data path is now hard-coded to /var/lib/columnstore. This patch also: * Removes v1 decompression * Removes a bunch of unneeded files * Removes COLUMNSTORE_INSTALL_DIR / $INSTALLDIR * Makes my.cnf.d work for all platforms (MCOL-3558) * Changes configcpp to use recursive mutex (fixes possible config write deadlock) * Fixes MCOL-3599 Fix regr functions, The library was installed in the wrong location * Fixes a bunch of Ubuntu packaging issues * Changes the binary names of several of the executables so as not to clash with potential executables from other packages
71 lines
1.1 KiB
Bash
Executable File
71 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# configxml set/get an entry in Columnstore.xml file
|
|
#
|
|
#
|
|
|
|
|
|
case "$1" in
|
|
setconfig)
|
|
|
|
if [ $# -ne 4 ]; then
|
|
echo $"Usage: $0 setconfig section variable set-value"
|
|
exit 1
|
|
fi
|
|
|
|
oldvalue=$(mcsGetConfig $2 $3)
|
|
|
|
#if [ -z $oldvalue ]; then
|
|
# echo "$2 / $3 not found in Columnstore.xml"
|
|
# exit 1
|
|
#fi
|
|
|
|
echo "Old value of $2 / $3 is $oldvalue"
|
|
|
|
calxml=@ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml
|
|
|
|
seconds=$(date +%s)
|
|
cp $calxml $calxml.$seconds
|
|
echo
|
|
echo "$calxml backed up to $calxml.$seconds"
|
|
echo
|
|
|
|
oldvalue=$(mcsGetConfig $2 $3)
|
|
|
|
echo "Old value of $2 / $3 is $oldvalue"
|
|
|
|
if ( [ $# -eq 4 ] && [ -z $4 ] ); then
|
|
mcsSetConfig $2 $3 ""
|
|
else
|
|
mcsSetConfig $2 $3 $4
|
|
fi
|
|
|
|
newvalue=$(mcsGetConfig $2 $3)
|
|
|
|
echo "$2 / $3 now set to $newvalue"
|
|
;;
|
|
|
|
getconfig)
|
|
if test ! $3 ; then
|
|
echo $"Usage: $0 getconfig section variable"
|
|
exit 1
|
|
fi
|
|
|
|
value=$(mcsGetConfig $2 $3)
|
|
|
|
if [ -z $value ]; then
|
|
echo "$2 / $3 not found in Columnstore.xml"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Current value of $2 / $3 is $value"
|
|
;;
|
|
|
|
*)
|
|
echo $"Usage: $0 {setconfig|getconfig} section variable set-value"
|
|
exit 1
|
|
|
|
esac
|
|
# vim:ts=4 sw=4:
|
|
|