]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: correct variable naming
authorXuehan Xu <xuxuehan@qianxin.com>
Thu, 1 Feb 2024 04:55:44 +0000 (12:55 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 6 May 2024 12:43:19 +0000 (15:43 +0300)
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
(cherry picked from commit 7000cbf82f40e0997c815a35a3a53f32e1afcef1)

src/crimson/osd/shard_services.cc

index 604c045eb9b86d743addde22b7c6b06489b8d1fd..ff35df280ad84858435586781e3dc73f27ad9136 100644 (file)
@@ -708,9 +708,9 @@ ShardServices::get_or_create_pg(
   std::unique_ptr<PGCreateInfo> info)
 {
   if (info) {
-    auto [fut, creating] = local_state.pg_map.wait_for_pg(
+    auto [fut, existed] = local_state.pg_map.wait_for_pg(
       std::move(trigger), pgid);
-    if (!creating) {
+    if (!existed) {
       local_state.pg_map.set_creating(pgid);
       (void)handle_pg_create_info(
        std::move(info));