]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
RGW - Don't move attrs before setting them 42320/head
authorDaniel Gryniewicz <dang@redhat.com>
Tue, 8 Jun 2021 16:59:56 +0000 (12:59 -0400)
committerCory Snyder <csnyder@iland.com>
Tue, 13 Jul 2021 19:51:34 +0000 (15:51 -0400)
commitc3eb7e5178803fdf659e2abadda5ba34965294e0
tree81aca3cf6aa90247608c53419858c78c4006967e
parent274a16316666a1127d4e4b7f2898e39cf27cd4fe
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>
(cherry picked from commit 4d38154f5779b01ed93430ef7405417820214796)

Conflicts:
src/rgw/rgw_op.cc
src/rgw/rgw_op.cc