From bd178ac20f9e292ad3efd5acdf4eef30b1aaddd2 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 9 Mar 2021 02:18:09 +0300 Subject: [PATCH] Fix history osd_set check - local OSD is always available! --- src/osd_peering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osd_peering.cpp b/src/osd_peering.cpp index 1b6fe26c..4210c10f 100644 --- a/src/osd_peering.cpp +++ b/src/osd_peering.cpp @@ -183,7 +183,8 @@ void osd_t::start_pg_peering(pg_t & pg) bool found = false; for (auto history_osd: history_set) { - if (history_osd != 0 && c_cli.osd_peer_fds.find(history_osd) != c_cli.osd_peer_fds.end()) + if (history_osd != 0 && (history_osd == this->osd_num || + c_cli.osd_peer_fds.find(history_osd) != c_cli.osd_peer_fds.end())) { found = true; break;