Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
0cc3c875
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0cc3c875
编写于
1月 05, 2016
作者:
J
Jimmy Yih
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix function name in catalog statistics dump and restore.
上级
ec2b7bb5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
4 deletion
+4
-4
gpMgmt/bin/gppylib/operations/dump.py
gpMgmt/bin/gppylib/operations/dump.py
+1
-1
gpMgmt/bin/gppylib/operations/restore.py
gpMgmt/bin/gppylib/operations/restore.py
+3
-3
未找到文件。
gpMgmt/bin/gppylib/operations/dump.py
浏览文件 @
0cc3c875
...
...
@@ -626,7 +626,7 @@ def backup_statistics_file_with_nbu(master_datadir, backup_dir, dump_dir, dump_p
timestamp_key
=
TIMESTAMP_KEY
backup_file_with_nbu
(
netbackup_service_host
,
netbackup_policy
,
netbackup_schedule
,
netbackup_block_size
,
netbackup_keyword
,
generate_stat
istic
s_filename
(
master_datadir
,
backup_dir
,
dump_dir
,
dump_prefix
,
DUMP_DATE
,
timestamp_key
))
generate_stats_filename
(
master_datadir
,
backup_dir
,
dump_dir
,
dump_prefix
,
DUMP_DATE
,
timestamp_key
))
def
backup_config_files_with_nbu
(
master_datadir
,
backup_dir
,
dump_dir
,
dump_prefix
,
master_port
,
netbackup_service_host
,
netbackup_policy
,
netbackup_schedule
,
netbackup_block_size
,
netbackup_keyword
,
timestamp_key
=
None
):
...
...
gpMgmt/bin/gppylib/operations/restore.py
浏览文件 @
0cc3c875
...
...
@@ -19,7 +19,7 @@ from gppylib.operations.backup_utils import check_backup_type, check_dir_writabl
execute_sql
,
expand_partition_tables
,
generate_ao_state_filename
,
generate_cdatabase_filename
,
\
generate_co_state_filename
,
generate_createdb_filename
,
generate_createdb_prefix
,
generate_dbdump_prefix
,
\
generate_dirtytable_filename
,
generate_global_filename
,
generate_global_prefix
,
generate_increments_filename
,
\
generate_master_config_filename
,
generate_master_dbdump_prefix
,
generate_stats_prefix
,
generate_metadata_filename
,
\
generate_master_config_filename
,
generate_master_dbdump_prefix
,
generate_stats_
filename
,
generate_stats_
prefix
,
generate_metadata_filename
,
\
generate_partition_list_filename
,
generate_pgstatlastoperation_filename
,
generate_plan_filename
,
generate_report_filename
,
\
generate_segment_config_filename
,
get_all_segment_addresses
,
get_backup_directory
,
get_full_timestamp_for_incremental
,
\
get_full_timestamp_for_incremental_with_nbu
,
get_lines_from_file
,
restore_file_with_nbu
,
run_pool_command
,
scp_file_to_hosts
,
\
...
...
@@ -314,7 +314,7 @@ def restore_statistics_file_with_nbu(master_datadir, backup_dir, dump_dir, dump_
raise
Exception
(
'Restore timestamp is None.'
)
if
netbackup_service_host
is
None
:
raise
Exception
(
'Netbackup service hostname is None.'
)
restore_file_with_nbu
(
netbackup_service_host
,
netbackup_block_size
,
generate_stat
istic
s_filename
(
master_datadir
,
backup_dir
,
dump_dir
,
dump_prefix
,
restore_timestamp
[
0
:
8
],
restore_timestamp
))
restore_file_with_nbu
(
netbackup_service_host
,
netbackup_block_size
,
generate_stats_filename
(
master_datadir
,
backup_dir
,
dump_dir
,
dump_prefix
,
restore_timestamp
[
0
:
8
],
restore_timestamp
))
def
restore_partition_list_file_with_nbu
(
master_datadir
,
backup_dir
,
dump_dir
,
dump_prefix
,
restore_timestamp
,
netbackup_service_host
,
netbackup_block_size
):
if
(
master_datadir
is
None
)
and
(
backup_dir
is
None
):
...
...
@@ -366,7 +366,7 @@ def statistics_file_dumped(master_datadir, backup_dir, dump_dir, dump_prefix, re
raise
Exception
(
'Restore timestamp is None.'
)
if
netbackup_service_host
is
None
:
raise
Exception
(
'Netbackup service hostname is None.'
)
statistics_filename
=
generate_stat
istic
s_filename
(
master_datadir
,
backup_dir
,
dump_dir
,
dump_prefix
,
restore_timestamp
[
0
:
8
],
restore_timestamp
)
statistics_filename
=
generate_stats_filename
(
master_datadir
,
backup_dir
,
dump_dir
,
dump_prefix
,
restore_timestamp
[
0
:
8
],
restore_timestamp
)
return
check_file_dumped_with_nbu
(
netbackup_service_host
,
statistics_filename
)
def
_build_gpdbrestore_cmd_line
(
ts
,
table_file
,
backup_dir
,
redirected_restore_db
,
report_status_dir
,
dump_prefix
,
ddboost
=
False
,
netbackup_service_host
=
None
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录