1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-20 01:42:27 +03:00
Files
mariadb-columnstore-engine/oam/post/columnstore_functions
Andrew Hutchings 25d22381c6 MCOL-3608 Add module installer file copy
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.
2019-11-14 14:40:28 +00:00

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
}