]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
RGW - Don't move attrs before setting them 41761/head
authorDaniel Gryniewicz <dang@redhat.com>
Tue, 8 Jun 2021 16:59:56 +0000 (12:59 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Tue, 8 Jun 2021 16:59:56 +0000 (12:59 -0400)
commit4d38154f5779b01ed93430ef7405417820214796
tree5274779ddb295ca6f217f15173e6f5740591c884
parent90a78befc12cf8ea48772cc2499f61ff10c07139
RGW - Don't move attrs before setting them

Moving the attrs into s->bucket_attrs before setting them results in
setting empty attrs into the bucket.  This means that reading them back
later gets empty attrs, which can cause a segfault.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/rgw_op.cc