#!/bin/bash
source $(cd `dirname $0`; pwd)/common
parameterSize=1

if [ $# = 0 ]
then
	echo "数据库位图对比工具需要参数："
	echo "数据库目录，一般是名称为 “database” 的目录。"
else
    needStopServer   #需要停止服务才能使用该工具
    if [ $? = 1 ]
    then
	    if [ $# != $parameterSize ]
	    then
	    	echo "参数个数不对。"
	    else
      	    java -classpath "$basePath/$version/lib/*:." kd.bos.olap.repairTools.OlapServerToolsMain -allowRunWithDatabase:true -function:checkBitMap -functionParameters:$(getAbsolutePath $1)
      	fi
	fi
fi