Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
天地威能
oceanbase
提交
0926892f
O
oceanbase
项目概览
天地威能
/
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0926892f
编写于
12月 01, 2022
作者:
O
obdev
提交者:
OB-robot
12月 01, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix defragmentation problem (defragment before block is marked)
上级
fb1e4bcf
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
2 deletion
+6
-2
src/storage/blocksstable/ob_shared_macro_block_manager.cpp
src/storage/blocksstable/ob_shared_macro_block_manager.cpp
+4
-2
src/storage/compaction/ob_partition_merger.cpp
src/storage/compaction/ob_partition_merger.cpp
+2
-0
未找到文件。
src/storage/blocksstable/ob_shared_macro_block_manager.cpp
浏览文件 @
0926892f
...
...
@@ -29,6 +29,7 @@
#include "storage/ls/ob_ls.h"
#include "share/ob_ls_id.h"
#include "storage/tx_storage/ob_ls_service.h"
#include "storage/slog_ckpt/ob_server_checkpoint_slog_handler.h"
namespace
oceanbase
{
...
...
@@ -273,10 +274,10 @@ int ObSharedMacroBlockMgr::try_switch_macro_block()
if
(
block_id
.
is_valid
()
&&
OB_FAIL
(
add_block
(
block_id
,
used_size
)))
{
LOG_WARN
(
"fail to add cur block to map"
,
K
(
ret
),
K
(
block_id
));
}
else
if
(
FALSE_IT
(
macro_handle_
.
reset
()))
{
}
else
if
(
FALSE_IT
(
offset_
=
0
))
{
}
else
if
(
OB_FAIL
(
OB_SERVER_BLOCK_MGR
.
alloc_block
(
macro_handle_
)))
{
LOG_WARN
(
"fail to alloc block for new macro block"
,
K
(
ret
));
}
else
{
offset_
=
0
;
ObMacroBlockWriteInfo
write_info
;
ObBlockInfo
block_info
;
write_info
.
buffer_
=
common_header_buf_
;
...
...
@@ -288,6 +289,7 @@ int ObSharedMacroBlockMgr::try_switch_macro_block()
LOG_WARN
(
"fail to write common header to the shared macro block"
,
K
(
ret
),
K
(
block_info
));
}
}
return
ret
;
}
...
...
@@ -739,7 +741,7 @@ int ObSharedMacroBlockMgr::read_sstable_block(
void
ObSharedMacroBlockMgr
::
ObBlockDefragmentationTask
::
runTimerTask
()
{
int
ret
=
OB_SUCCESS
;
if
(
OB_FAIL
(
shared_mgr_
.
defragment
()))
{
if
(
O
bServerCheckpointSlogHandler
::
get_instance
().
is_started
()
&&
O
B_FAIL
(
shared_mgr_
.
defragment
()))
{
LOG_WARN
(
"fail to defragment small sstables"
,
K
(
ret
));
}
}
...
...
src/storage/compaction/ob_partition_merger.cpp
浏览文件 @
0926892f
...
...
@@ -657,6 +657,8 @@ int ObPartitionMajorMerger::merge_partition(ObTabletMergeCtx &ctx, const int64_t
}
else
if
(
is_reuse_base_sstable
)
{
if
(
OB_FAIL
(
reuse_base_sstable
(
merge_iters
))
&&
OB_ITER_END
!=
ret
)
{
STORAGE_LOG
(
WARN
,
"Failed to reuse base sstable"
,
K
(
ret
),
K
(
merge_iters
));
}
else
{
FLOG_INFO
(
"succeed to reuse base sstable"
,
K
(
merge_iters
));
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录