]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: adjust assert in log_operation
authorSamuel Just <sjust@redhat.com>
Fri, 29 Mar 2024 22:47:49 +0000 (15:47 -0700)
committerSamuel Just <sjust@redhat.com>
Sat, 19 Oct 2024 01:40:11 +0000 (01:40 +0000)
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 <sjust@redhat.com>
src/osd/PrimaryLogPG.h

index 3ad7d41f16bb40005dcfc03333ef31265e0ffde4..9ee305165e38545b9ea8d129936c457245087e5b 100644 (file)
@@ -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);