6 Star 0 Fork 6

src-openEuler/drbd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-DRBDmon-Remove-replication-state-from-volume-details.patch 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
From 61c156368061963be5e5e9ef7a9eee5012b2f13a Mon Sep 17 00:00:00 2001
From: Robert Altnoeder <robert.altnoeder@linbit.com>
Date: Thu, 15 Feb 2024 17:24:20 +0100
Subject: [PATCH 065/100] DRBDmon: Remove replication state from volume
details, it's always unknown
---
user/drbdmon/terminal/MDspVolumeDetail.cpp | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/user/drbdmon/terminal/MDspVolumeDetail.cpp b/user/drbdmon/terminal/MDspVolumeDetail.cpp
index 4fa06ba0..1f20aab9 100644
--- a/user/drbdmon/terminal/MDspVolumeDetail.cpp
+++ b/user/drbdmon/terminal/MDspVolumeDetail.cpp
@@ -122,28 +122,6 @@ void MDspVolumeDetail::display_content()
}
++current_line;
- dsp_comp_hub.dsp_io->cursor_xy(1, current_line);
- dsp_comp_hub.dsp_io->write_text(dsp_comp_hub.active_color_table->emphasis_text.c_str());
- dsp_comp_hub.dsp_io->write_text("Replication state:");
- dsp_comp_hub.dsp_io->write_text(dsp_comp_hub.active_color_table->rst.c_str());
- dsp_comp_hub.dsp_io->cursor_xy(21, current_line);
- if (vlm->has_replication_alert())
- {
- dsp_comp_hub.dsp_io->write_text(dsp_comp_hub.active_color_table->alert.c_str());
- }
- else
- if (vlm->has_replication_warning())
- {
- dsp_comp_hub.dsp_io->write_text(dsp_comp_hub.active_color_table->warn.c_str());
- }
- else
- {
- dsp_comp_hub.dsp_io->write_text(dsp_comp_hub.active_color_table->norm.c_str());
- }
- const char* const repl_state_label = vlm->get_replication_state_label();
- dsp_comp_hub.dsp_io->write_text(repl_state_label);
- ++current_line;
-
dsp_comp_hub.dsp_io->cursor_xy(1, current_line);
dsp_comp_hub.dsp_io->write_text(dsp_comp_hub.active_color_table->emphasis_text.c_str());
dsp_comp_hub.dsp_io->write_text("Quorum:");
--
2.33.1.windows.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/drbd.git
git@gitee.com:src-openeuler/drbd.git
src-openeuler
drbd
drbd
master

搜索帮助