]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg_backend: only create new onode when it doesn't exist 58024/head
authorXuehan Xu <xxhdx1985126@gmail.com>
Fri, 3 May 2024 04:36:23 +0000 (12:36 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 13 Jun 2024 12:39:02 +0000 (15:39 +0300)
Fixes: https://tracker.ceph.com/issues/65773
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
(cherry picked from commit 814ee076d2721c52491f7677deae6df5b7366334)

src/crimson/osd/pg_backend.cc

index 143f522bb37510ae4adf3914522b78be35d6e480..400b67ef3846f7e54b7ac4f7e6e04a00de95e1ab 100644 (file)
@@ -993,8 +993,6 @@ PGBackend::create_iertr::future<> PGBackend::create(
     }
   }
   maybe_create_new_object(os, txn, delta_stats);
-  txn.create(coll->get_cid(),
-             ghobject_t{os.oi.soid, ghobject_t::NO_GEN, shard});
   return seastar::now();
 }