Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Metz
oceanbase
提交
29d544f8
O
oceanbase
项目概览
Metz
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
29d544f8
编写于
4月 01, 2022
作者:
X
xuhuleon
提交者:
LINGuanRen
4月 01, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix check mount file error msg
上级
b47ed7f2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
3 deletion
+7
-3
src/share/backup/ob_backup_info_mgr.cpp
src/share/backup/ob_backup_info_mgr.cpp
+3
-2
src/share/backup/ob_backup_path.cpp
src/share/backup/ob_backup_path.cpp
+4
-1
未找到文件。
src/share/backup/ob_backup_info_mgr.cpp
浏览文件 @
29d544f8
...
...
@@ -1662,7 +1662,8 @@ int ObBackupDestDetector::check_backup_dest()
if
(
OB_SUCC
(
ret
)
&&
info
.
is_valid
()
&&
ObLogArchiveStatus
::
STOP
!=
info
.
status_
.
status_
)
{
if
(
is_bad
)
{
LOG_ERROR
(
"backup dest is bad, skip check backup dest"
,
K
(
info
));
LOG_ERROR
(
"backup dest is bad, skip check backup dest. Please check if nfs is mounted and granted W/R permission"
,
K
(
info
));
}
else
if
(
OB_FAIL
(
check_backup_dest_
(
info
,
is_bad
)))
{
LOG_WARN
(
"failed to check backup dest"
,
K
(
ret
),
K
(
info
));
}
else
if
(
is_bad
)
{
...
...
@@ -1670,7 +1671,7 @@ int ObBackupDestDetector::check_backup_dest()
if
(
0
==
STRNCMP
(
info
.
backup_dest_
,
info_
.
backup_dest_
,
sizeof
(
info_
.
backup_dest_
))
&&
info
.
status_
.
round_
==
info_
.
status_
.
round_
)
{
is_bad_
=
true
;
LOG_ERROR
(
"[BACKUP_MOUNT_FILE]backup mount file not f
ile
, mark backup dest bad"
,
K
(
info
));
LOG_ERROR
(
"[BACKUP_MOUNT_FILE]backup mount file not f
ound
, mark backup dest bad"
,
K
(
info
));
}
else
{
FLOG_WARN
(
"[BACKUP_MOUNT_FILE]backup info is changed, cannot set bad"
,
K
(
info
),
K
(
info_
));
}
...
...
src/share/backup/ob_backup_path.cpp
浏览文件 @
29d544f8
...
...
@@ -1530,7 +1530,10 @@ int ObBackupMountFile::check_mount_file(const ObLogArchiveBackupInfo& backup_inf
LOG_WARN
(
"failed to read mount file"
,
K
(
ret
),
K
(
path
),
K
(
backup_info
));
}
else
if
(
!
is_exist
)
{
ret
=
OB_BACKUP_MOUNT_FILE_NOT_VALID
;
FLOG_WARN
(
"[BACKUP_MOUNT_FILE]check backup mount file is not exist"
,
K
(
ret
),
K
(
path
),
K
(
backup_info
));
LOG_ERROR
(
"[BACKUP_MOUNT_FILE]check backup mount file is not exist, maybe nfs is not mounted properly"
,
K
(
ret
),
K
(
path
),
K
(
backup_info
));
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录