]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgwlc: fix Segmentation Fault related to tags. 36086/head
authorzhuo li <lizhuo@chinatelecom.cn>
Sun, 12 Jul 2020 09:31:20 +0000 (17:31 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 14 Jul 2020 03:49:31 +0000 (05:49 +0200)
commitd73a4e7839b80c2083e42fef0c66a4f74acfeacc
tree044ee97d0aeda0ba5de255af8c7e8693734dd224
parent04312ff7a372d3d10b25c9c516fc487f573f0586
rgwlc: fix Segmentation Fault related to tags.

It is found that rgw crashes when putting a tag beyond the rule to the object, which can be solved by adding the return value judgment.

Fixes: https://tracker.ceph.com/issues/46485
Signed-off-by: zhuo li <lizhuo@chinatelecom.cn>
Signed-off-by: yupeng chen <chenyupeng@chinatelecom.cn>
(cherry picked from commit 5994ec12a7039f21b8f9e1077f2f721003de8cb6)

Conflicts:
src/rgw/rgw_lc.cc
- automated cherry-pick failed due to post-nautilus refactoring:
  made the change manually
src/rgw/rgw_lc.cc