From 8116c88ea1c3ed84d7a7a30cc5e535c14c2255eb Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 29 Mar 2024 15:47:49 -0700 Subject: [PATCH] osd/PrimaryLogPG: adjust assert in log_operation It wouldn't actually be wrong for the primary to trim the log right up to the pg_committed_to bound it is propagating (though it generally won't). Signed-off-by: Samuel Just --- src/osd/PrimaryLogPG.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index 3ad7d41f16b..9ee305165e3 100644 --- a/src/osd/PrimaryLogPG.h +++ b/src/osd/PrimaryLogPG.h @@ -502,7 +502,7 @@ public: ObjectStore::Transaction &t, bool async = false) override { if (is_primary()) { - ceph_assert(trim_to <= recovery_state.get_pg_committed_to()); + ceph_assert(trim_to <= pg_committed_to); } if (hset_history) { recovery_state.update_hset(*hset_history); -- 2.47.3