From 0385b2f9e8b19b4e1a66ff3a3f22a9ca47ea2712 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 25 Jan 2023 01:30:15 +0300 Subject: [PATCH] Fix write hangs on PG epoch update - always set pg.history_changed to true --- src/osd_primary_write.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd_primary_write.cpp b/src/osd_primary_write.cpp index c8016ae4..a2dee57a 100644 --- a/src/osd_primary_write.cpp +++ b/src/osd_primary_write.cpp @@ -168,8 +168,8 @@ resume_3: auto it = std::lower_bound(pg.target_history.begin(), pg.target_history.end(), history_set); if (it == pg.target_history.end() || *it != history_set) pg.target_history.insert(it, history_set); - pg.history_changed = true; } + pg.history_changed = true; report_pg_states(); resume_10: if (pg.epoch > pg.reported_epoch)