提交 f69fb46e 编写于 作者: I Ivan Novick

this check is no longer valid given the changes in backup/restore

we will change this in GPDB 7
上级 54638a08
......@@ -178,15 +178,6 @@ def display_params(options, dburl, standby, segments, dumpDirsExist):
else:
raise GpDeleteSystemException('User canceled')
# -------------------------------------------------------------------------
# check_for_dump_files() - checks if there are database dump files
# -------------------------------------------------------------------------
def check_for_dump_files(options):
logger.info('Checking for database dump files...')
return gp.GpDirsExist.local('check for dump dirs', baseDir=options.master_data_dir, dirName="'*dump*'") \
or gp.GpDirsExist.local('check for dump dirs', baseDir=options.master_data_dir, dirName="'*backups*'")
def getTablespaceDirs():
''' Create list of user-created tablespace locations for each host '''
tblspclocs = {}
......@@ -217,14 +208,6 @@ def getTablespaceDirs():
def delete_cluster(options):
global g_warnings_generated
# check for dumps if needed
dump_files_exist = check_for_dump_files(options)
if not options.force and dump_files_exist:
logger.fatal('Located possible database backup file on Master instance host')
logger.fatal('in directory %s' % options.master_data_dir)
logger.fatal('To override database backup file checking use -f option')
raise GpDeleteSystemException('Backup files exist')
# get gparray object
logger.info('Getting segment information...')
dburl = dbconn.DbURL(port=options.pgport)
......
ARRAY_NAME="GPDB QUICKSTART"
CHECK_POINT_SEGMENTS=8
declare -a DATA_DIRECTORY=(~/gpdb ~/gpdb)
ENCODING=UNICODE
MACHINE_LIST_FILE=./hostlist_singlenode
MASTER_DIRECTORY=~/gpdb
MASTER_PORT=5432
PORT_BASE=6000
SEG_PREFIX=gpsne
TRUSTED_SHELL=ssh
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册