]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: don't crash on --placement-id without --storage-class 46152/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 4 May 2022 20:19:01 +0000 (16:19 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 4 May 2022 21:05:12 +0000 (17:05 -0400)
commit91931a38ce280132e270c80822f3f3b2cc0a3bf9
tree1c89dbe941c22894d9d5f2b6ed09e6158c334e37
parent26ed4f5228e5b625774694bb41493380d5cbf5d5
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>
src/rgw/rgw_admin.cc