]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg: on_removal to assert empty log_entry map
authorMatan Breizman <mbreizma@redhat.com>
Thu, 30 Nov 2023 14:57:06 +0000 (14:57 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 16 Jan 2024 12:42:58 +0000 (12:42 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/pg.cc

index cd2478d58eacafc9bc8c9fd310702a06d6ebfda6..8304697d5683c17ce00a207489c6c54f48c9bb0f 100644 (file)
@@ -309,7 +309,7 @@ unsigned PG::get_target_pg_log_entries() const
 }
 
 void PG::on_removal(ceph::os::Transaction &t) {
-  clear_log_entry_maps();
+  ceph_assert(log_entry_update_waiting_on.empty());
   t.register_on_commit(
     new LambdaContext(
       [this](int r) {