summaryrefslogtreecommitdiffstats
path: root/src/crimson/osd/pg_shard_manager.h
diff options
context:
space:
mode:
authorMatan Breizman <mbreizma@redhat.com>2024-01-24 11:22:00 +0100
committerMatan Breizman <mbreizma@redhat.com>2024-01-24 11:58:26 +0100
commit384f6532d3a9052b26b79763cd7a0f14ea9030c1 (patch)
treeded36e98f01dd47a8066b412ec96e5b3fe1698e5 /src/crimson/osd/pg_shard_manager.h
parentcrimson/osd/pg_map: move maybe_create_pg and remove pg form header (diff)
downloadceph-384f6532d3a9052b26b79763cd7a0f14ea9030c1.tar.xz
ceph-384f6532d3a9052b26b79763cd7a0f14ea9030c1.zip
crimson/osd:pg_map: rename create or remove pg
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
Diffstat (limited to 'src/crimson/osd/pg_shard_manager.h')
-rw-r--r--src/crimson/osd/pg_shard_manager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crimson/osd/pg_shard_manager.h b/src/crimson/osd/pg_shard_manager.h
index 1559dde0cb1..a3f0c8b7cc5 100644
--- a/src/crimson/osd/pg_shard_manager.h
+++ b/src/crimson/osd/pg_shard_manager.h
@@ -373,7 +373,7 @@ public:
return opref.template enter_stage<>(
opref.get_connection_pipeline().get_pg_mapping);
}).then([this, &opref] {
- return get_pg_to_shard_mapping().maybe_create_pg(opref.get_pgid());
+ return get_pg_to_shard_mapping().get_or_create_pg_mapping(opref.get_pgid());
}).then_wrapped([this, &logger, op=std::move(op)](auto fut) mutable {
if (unlikely(fut.failed())) {
logger.error("{}: failed before with_pg", *op);