]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerEnming Zhang <enming.zhang@umcloud.com>
Tue, 31 Oct 2017 03:10:00 +0000 (11:10 +0800)
commit3d2f63de494f8cd065d3af3cfa49e111a294622c
tree066c8915b9508d8e2f9b95982a0caabbd1d6ce71
parent9c0abe6d638c92f1f29798afa846f8a80fa64814
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>
src/rgw/rgw_lc_s3.cc
src/rgw/rgw_lc_s3.h