]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crimson/os/seastore/collection_manager/collection_flat_node.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / crimson / os / seastore / collection_manager / collection_flat_node.cc
index 6181582702cd78773e3d5b6c43a66b79a24034ad..9eaeefc72a67108200b8bcceca35096733a4104a 100644 (file)
@@ -62,7 +62,7 @@ CollectionNode::create(coll_context_t cc, coll_t coll, unsigned bits)
 {
   read_to_local();
   logger().debug("CollectionNode:{}", __func__);
-  if (!is_pending()) {
+  if (!is_mutable()) {
     auto mut = cc.tm.get_mutable_extent(cc.t, this)->cast<CollectionNode>();
     return mut->create(cc, coll, bits);
   }
@@ -90,7 +90,7 @@ CollectionNode::update(coll_context_t cc, coll_t coll, unsigned bits)
 {
   read_to_local();
   logger().debug("CollectionNode:{}", __func__);
-  if (!is_pending()) {
+  if (!is_mutable()) {
     auto mut = cc.tm.get_mutable_extent(cc.t, this)->cast<CollectionNode>();
     return mut->update(cc, coll, bits);
   }
@@ -107,7 +107,7 @@ CollectionNode::remove(coll_context_t cc, coll_t coll)
 {
   read_to_local();
   logger().debug("CollectionNode:{}", __func__);
-  if (!is_pending()) {
+  if (!is_mutable()) {
     auto mut = cc.tm.get_mutable_extent(cc.t, this)->cast<CollectionNode>();
     return mut->remove(cc, coll);
   }