]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix error handling in the link() method of RGWBucket. 15669/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 13 Jun 2017 11:17:28 +0000 (13:17 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 13 Jun 2017 15:36:21 +0000 (17:36 +0200)
commit840ed4a18d6a0124bfa8deb03b6b759c64922ded
tree29fdf82e11f588aba68424b697e24a1f1a38fd85
parent1031f90219b42047cf3e4eb92dec027b37b516c5
rgw: fix error handling in the link() method of RGWBucket.

The recent Static Analysis for Ceph (linked 13 June 2017 on
ceph-devel) shows that the link() method of RGWBucket assigns
to a variable but doesn't use it later. The anomaly is caused
by lack of proper error handling. This commit rectifies it.

Fixes: http://tracker.ceph.com/issues/20279
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_bucket.cc