]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/osd/PrimaryLogPG.h
import 15.2.2 octopus source
[ceph.git] / ceph / src / osd / PrimaryLogPG.h
index fd303e2ac5440dc554db0a0954231f5db829c10d..afa54ab503adc21de938432b850fb7127fea3a72 100644 (file)
@@ -463,6 +463,9 @@ public:
     bool transaction_applied,
     ObjectStore::Transaction &t,
     bool async = false) override {
+    if (is_primary()) {
+      ceph_assert(trim_to <= recovery_state.get_last_update_ondisk());
+    }
     if (hset_history) {
       recovery_state.update_hset(*hset_history);
     }