]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: don't crash on --placement-id without --storage-class 53474/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 4 May 2022 20:19:01 +0000 (16:19 -0400)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 14 Sep 2023 19:13:19 +0000 (02:13 +0700)
commitf862b86c93c49ab21a4cd9cea3448f55dedee370
tree98478f2f363cfd91ccc427672f63ce4dd8784fd3
parentcff0bd0bc7f5716e16c18ad6eef33ee76ba5d6e3
radosgw-admin: don't crash on --placement-id without --storage-class

if --storage-class is omitted, avoid dereferencing an empty optional

Fixes: https://tracker.ceph.com/issues/55548
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 91931a38ce280132e270c80822f3f3b2cc0a3bf9)

Conflicts:
  - path: src/rgw/rgw_admin.cc
    comment: manually resolve minor conflict
src/rgw/rgw_admin.cc