]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: lc fix rgw crash when lc configuration xml not including ID
authorEnming Zhang <enming.zhang@umcloud.com>
Wed, 25 Oct 2017 10:56:08 +0000 (18:56 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 6 Nov 2017 12:32:53 +0000 (13:32 +0100)
commit03d1cd996cf189d10a23c839aead4075cbdb888f
tree742b08a5655d65c427588cbe642221b17586988b
parent5e44bedf293beffb6823ae866373314a3675c431
rgw: lc fix rgw crash when lc configuration xml not including ID

When a putting lc config request does not include an ID tag in lc
configuration xml, RGW should generate a random ID for the lc
configuration.

At present RGW will crash when generate a random ID for
lc configuration.

Fixes: http://tracker.ceph.com/issues/21980
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
(cherry picked from commit 3d2f63de494f8cd065d3af3cfa49e111a294622c)
src/rgw/rgw_lc_s3.cc
src/rgw/rgw_lc_s3.h