]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix multi delete
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 12 Aug 2013 17:05:44 +0000 (10:05 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Mon, 12 Aug 2013 21:30:11 +0000 (14:30 -0700)
commitd6be5ed2601b8cf45570afe7ca75ce5aba3f8b4f
tree5a976a2f1ee06f2a4476540e686f4e6c177f1bdc
parentecaa46a13837305b9382ab319d43890729c54f1e
rgw: fix multi delete

Fixes: #5931
Backport: bobtail, cuttlefish

Fix a bad check, where we compare the wrong field. Instead of
comparing the ret code to 0, we compare the string value to 0
which generates implicit casting, hence the crash.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit f9f1c48ad799da2b4be0077bf9d61ae116da33d7)

Conflicts:
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.cc