You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-20 01:42:27 +03:00
Adds back some stuff that was remove distributed that didn't work properly for non-distributed. Also use /var/lib/columnstore/local for module file as OAM intended.
43 lines
635 B
Plaintext
Executable File
43 lines
635 B
Plaintext
Executable File
#
|
|
# $Id: functions 2937 2012-05-30 18:17:09Z rdempsey $
|
|
#
|
|
|
|
# Source function library.
|
|
if [ -f /etc/init.d/functions ]; then
|
|
. /etc/init.d/functions
|
|
fi
|
|
|
|
module_type()
|
|
{
|
|
(
|
|
sed -r 's/[0-9]+$//' /var/lib/columnstore/local/module
|
|
) 2>/dev/null
|
|
}
|
|
|
|
firstboot()
|
|
{
|
|
dbrmroot="`mcsGetConfig SystemConfig DBRMRoot`"
|
|
dbrmdir="`dirname $dbrmroot`"
|
|
test ! -f $dbrmdir/BRM_saves_current
|
|
}
|
|
|
|
oidbitmapfile()
|
|
{
|
|
oidfile="`mcsGetConfig OIDManager OIDBitmapFile`"
|
|
test ! -f $oidfile
|
|
}
|
|
|
|
module_name()
|
|
{
|
|
(
|
|
cat /var/lib/columnstore/local/module
|
|
) 2>/dev/null
|
|
}
|
|
|
|
module_id()
|
|
{
|
|
(
|
|
sed -r 's/[a-zA-Z]//g' /var/lib/columnstore/local/module
|
|
) 2>/dev/null
|
|
}
|